Skip to content

feat(options): Add before_send_feedback hook - #1923

Open
limbonaut wants to merge 13 commits into
masterfrom
limbonaut/feat/before-send-feedback
Open

feat(options): Add before_send_feedback hook#1923
limbonaut wants to merge 13 commits into
masterfrom
limbonaut/feat/before-send-feedback

Conversation

@limbonaut

@limbonaut limbonaut commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

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.

The 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 a feedback client report.

@limbonaut
limbonaut force-pushed the limbonaut/feat/before-send-feedback branch from aa9a1b7 to b861083 Compare July 27, 2026 16:01
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.14286% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 75.80%. Comparing base (5bac907) to head (c320c75).

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@limbonaut
limbonaut force-pushed the limbonaut/feat/before-send-feedback branch from a267db0 to 6af6aea Compare July 27, 2026 19:43
Comment thread src/sentry_core.c
@limbonaut limbonaut changed the title WIP: feat(options): Add before_send_feedback hook feat(options): Add before_send_feedback hook Jul 27, 2026
@github-actions

github-actions Bot commented Jul 27, 2026

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

Generated by 🚫 dangerJS against c320c75

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.

Add before_send_feedback hook

1 participant