feat(options): Add before_send_feedback hook - #1923
Open
limbonaut wants to merge 13 commits into
Open
Conversation
limbonaut
force-pushed
the
limbonaut/feat/before-send-feedback
branch
from
July 27, 2026 16:01
aa9a1b7 to
b861083
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1923 +/- ##
==========================================
+ Coverage 75.74% 75.80% +0.06%
==========================================
Files 93 93
Lines 22128 22149 +21
Branches 3939 3942 +3
==========================================
+ Hits 16760 16791 +31
+ Misses 4484 4477 -7
+ Partials 884 881 -3 🚀 New features to boost your workflow:
|
limbonaut
force-pushed
the
limbonaut/feat/before-send-feedback
branch
from
July 27, 2026 19:43
a267db0 to
6af6aea
Compare
before_send_feedback hookbefore_send_feedback hook
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
sentry_options_set_before_send_feedback, so user feedback can be modified or discarded before it is sent. The hook runs after the local and global scopes have been applied, so the callback sees the same feedback event that would otherwise be sent.before_send_feedbackhook #1921The callback also receives the capture's hint and can attach files to that single feedback. A hint is created for the callback when the caller did not pass one, so this works across all three capture functions. Returning
sentry_value_new_null()discards the feedback and records afeedbackclient report.