Skip to content

Conversation

@theCapypara
Copy link

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 getsentry/sentry-javascript#7729.

Fixes GH-1064

Also see my comments at #1064 (comment)


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

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 getsentry/sentry-javascript#7729.

Fixes getsentryGH-1064
@cleptric
Copy link
Member

cleptric commented Nov 8, 2023

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 getsentry/sentry#54956.

I would hold off on supporting the old version, as it will be obsolete soon.

@theCapypara
Copy link
Author

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

@theCapypara
Copy link
Author

theCapypara commented Dec 23, 2023

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
Copy link
Author

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
Copy link
Author

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

@theCapypara theCapypara deleted the user-feedback branch March 21, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add util to send user feedback

2 participants