Skip to content

feat: User feedback API #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

feat: User feedback API #204

wants to merge 7 commits into from

Conversation

limbonaut
Copy link
Collaborator

@limbonaut limbonaut commented Jun 19, 2025

This PR adds API to capture user feedback. This API can be used to create user feedback forms in Godot games.

Needed for #170

Screenshot 2025-06-19 at 17 07 50

TODOs:

  • Add before_capture_feedback user hook

Copy link
Contributor

github-actions bot commented Jun 19, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 8bc173e

@limbonaut limbonaut marked this pull request as ready for review June 19, 2025 15:20

sentry_uuid_t event_uuid;
if (p_feedback->get_associated_event_id().is_empty()) {
event_uuid = sentry_uuid_nil();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a random uuid? If the id doesn't correspond to an error event the feedback won't be created in sentry, if you're using the old capture_user_feedback

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bringing this up, I didn't realize it's a different protocol.

p_feedback->get_contact_email().utf8(),
p_feedback->get_message().utf8());

sentry_capture_user_feedback(uf);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we wrapping the old capture_user_feedback here? This will still send the old envelope format

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Godot SDK is built on top of sentry-native, which doesn't yet have the new capture_feedback.

See: getsentry/sentry-native#885 (comment)

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add this first, though it must require an event id for it to work.
Or, add to sentry-native a capture_feedback

See:

p_feedback->get_contact_email().utf8(),
p_feedback->get_message().utf8());

sentry_capture_user_feedback(uf);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Godot SDK is built on top of sentry-native, which doesn't yet have the new capture_feedback.

See: getsentry/sentry-native#885 (comment)

@limbonaut limbonaut marked this pull request as draft June 21, 2025 07:06
@limbonaut
Copy link
Collaborator Author

Indeed, if it just gets attached to an event, it's not as useful for what we have in mind. It needs more cooking then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants