sentry-python
sentry-python copied to clipboard
feat(api): Support capturing user feedback
This adds an API to the Sentry Python SDK that captures user feedback via envelope.
This is implemented very similiarly to how it is done for the JavaScript SDK, see https://github.com/getsentry/sentry-javascript/pull/7729.
Fixes GH-1064
Also see my comments at https://github.com/getsentry/sentry-python/issues/1064#issuecomment-1758485928
The usage is pretty much like it's explained for the JavaScript SDK.
Example usage:
import sentry_sdk
test_event = sentry_sdk.capture_message("test_message")
assert test_event is not None
sentry_sdk.capture_user_feedback(
{
"event_id": test_event, # or sentry_sdk.last_event_id()
"name": "Tester",
"email": "[email protected]",
"comments": "Test comments",
}
)
We are currently working on an entirely new User Feedback product, which is tied together with Session Replays. The feature is currently in a closed Alpha. There is a bit more info about it in this discussion https://github.com/getsentry/sentry/discussions/54956.
I would hold off on supporting the old version, as it will be obsolete soon.
Doesn't session replay only work in a browser, or do I misunderstand this feature? What about user feedback from desktop apps?
The new user feedback only supports browser based apps and the "old" way is still recommended for non-browser based apps:
https://docs.sentry.io/product/user-feedback/setup/#supported-sdks-for-crash-report-api
Does this mean this could move forward?
Hi! I'm using this in an app I'm developing and would really like to get rid of it there to not have to maintain it as part of the app itself. Can this move forward or is there something else I need to do to submit user feedback from Python desktop apps?
I withdraw this contribution, since there doesn't seem to be any interest.