Skip to content

feat: add SetBeforeSendFeedback to process feedback before sending #4092 #4224

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

diegonunfio
Copy link

This PR introduces a new callback SetBeforeSendFeedback that allows users to modify or cancel feedback before it is sent to Sentry.

  • Added methods to configure the callback in SentryOptions.
  • Updated CaptureFeedback to invoke the callback.
  • If the callback returns null, the feedback is dropped.
  • Preserves backward compatibility.

@diegonunfio diegonunfio changed the title feat: add SetBeforeSendFeedback to process feedback before sending feat: add SetBeforeSendFeedback to process feedback before sending May 27, 2025
@diegonunfio diegonunfio changed the title feat: add SetBeforeSendFeedback to process feedback before sending feat: add SetBeforeSendFeedback to process feedback before sending #4092 May 27, 2025
@jamescrosswell
Copy link
Collaborator

@diegonunfio thanks for putting a PR together! 🙏🏻

btw: did you add 7f23dfe by accident? It looks like that's related to the other issue you were interested in fixing... so should definitely go in it's own PR.

Let us know if you've got any questions about getting the PR to pass all the CI checks or if you need a hand with that.

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.

2 participants