Skip to content

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

Merged
limbonaut merged 7 commits into
masterfrom
limbonaut/docs/native-feedback-scope-hooks
Aug 10, 2026
Merged

docs(native): Document user feedback scope data and before_send_feedback#18982
limbonaut merged 7 commits into
masterfrom
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

@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 10, 2026 3:02pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Aug 10, 2026 3:02pm

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.

@JoshuaMoelans JoshuaMoelans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

Comment thread docs/platforms/native/common/configuration/options.mdx Outdated
Base automatically changed from limbonaut/docs/native-scope-attributes-logs-metrics to master August 10, 2026 14:51
limbonaut and others added 6 commits August 10, 2026 16:51
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>
@limbonaut
limbonaut force-pushed the limbonaut/docs/native-feedback-scope-hooks branch from 4322bd0 to 26943f3 Compare August 10, 2026 14:51
Co-authored-by: JoshuaMoelans <60878493+JoshuaMoelans@users.noreply.github.com>
@limbonaut
limbonaut merged commit 6825806 into master Aug 10, 2026
22 checks passed
@limbonaut
limbonaut deleted the limbonaut/docs/native-feedback-scope-hooks branch August 10, 2026 15:19
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.

3 participants