sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

feat(api): Support capturing user feedback

Open theCapypara opened this issue 2 years ago • 4 comments

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",
    }
)

theCapypara avatar Oct 13 '23 14:10 theCapypara

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.

cleptric avatar Nov 08 '23 13:11 cleptric

Doesn't session replay only work in a browser, or do I misunderstand this feature? What about user feedback from desktop apps?

theCapypara avatar Nov 08 '23 13:11 theCapypara

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?

theCapypara avatar Dec 23 '23 14:12 theCapypara

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?

theCapypara avatar Jan 15 '24 13:01 theCapypara

I withdraw this contribution, since there doesn't seem to be any interest.

theCapypara avatar Mar 21 '24 22:03 theCapypara