Skip to content

docs(native): Document user feedback scope data and before_send_feedback - #18982

Open
limbonaut wants to merge 6 commits into
limbonaut/docs/native-scope-attributes-logs-metricsfrom
limbonaut/docs/native-feedback-scope-hooks
Open

docs(native): Document user feedback scope data and before_send_feedback#18982
limbonaut wants to merge 6 commits into
limbonaut/docs/native-scope-attributes-logs-metricsfrom
limbonaut/docs/native-feedback-scope-hooks

Conversation

@limbonaut

@limbonaut limbonaut commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Documents what user feedback carries and how to control it in the Native SDK: the global scope data attached to a feedback event, attaching files through a hint, capturing feedback with a scope, and filtering with the before_send_feedback hook. The hook receives a feedback event with the feedback nested under contexts.feedback, so the filtering example reads it from there and releases the event when dropping it.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

limbonaut and others added 6 commits August 8, 2026 12:24
Feedback gained scope data in 0.16.0 and a dedicated filtering hook in
0.16.2, none of which was documented. The user feedback page still
showed only a bare `sentry_capture_feedback` call.

- Note that feedback carries the global scope's release, environment,
  tags, user, and contexts including the trace, plus scope attachments,
  since 0.16.0. Breadcrumbs, modules, and stack traces are left off.
- Document `sentry_scope_capture_feedback` (0.16.0) and hints for
  attaching files to a single feedback.
- Add the `before_send_feedback` option and a Filtering section for it.
  Feedback does not pass through `before_send`, so this is the only hook
  that sees it.
- Flag `sentry_value_new_user_feedback` and `sentry_capture_user_feedback`
  as deprecated; they emit the older User Report item, which carries
  neither scope data nor attachments.
- Document `sentry_scope_remove_fingerprint` (0.16.2).

NOTE: `before_send_feedback` and `sentry_scope_remove_fingerprint` are
unreleased. Hold this PR until 0.16.2 ships, and confirm the version
number before merging.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Aug 8, 2026 11:22am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Aug 8, 2026 11:22am

Request Review

@codeowner-assignment
codeowner-assignment Bot requested a review from a team August 8, 2026 11:13
@limbonaut limbonaut changed the title limbonaut/docs/native feedback scope hooks docs(native): Document user feedback scope data and before_send_feedback Aug 8, 2026
@limbonaut

Copy link
Copy Markdown
Collaborator Author

Code samples are verified.

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.

1 participant