Set Up User Feedback
Learn how to view user feedback submissions which, paired with the original event, give you additional insight into issues.
Sentry makes it possible to collect additional feedback when a user experiences an error. You can collect feedback according to the method supported by your SDK of choice.
The user feedback API allows you to collect user feedback using your own UI. You can use the same programming language you have in your app to then send the feedback. In this case, the SDK creates the HTTP request so you don't have to deal with posting data via HTTP.
Sentry pairs the feedback with the original event, giving you additional insight into issues. In order to do this, Sentry needs the eventId
. For example, to get the eventId
, you can use before_send
or the return value of the method capturing an event.
#include <sentry.h>
sentry_value_t event = sentry_value_new_message_event(
SENTRY_LEVEL_INFO, "my-logger", "Hello user feedback!");
sentry_uuid_t event_id = sentry_capture_event(event);
sentry_value_t user_feedback = sentry_value_new_user_feedback(
&event_id, "Jane", "jane.doe@example.com", "Feedback message");
sentry_capture_user_feedback(user_feedback);
Alternatively, you can use the User Feedback API endpoint directly.
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").