feat(outcomes): Add callback_error discard reason - #8422
Merged
Conversation
phacops
approved these changes
Sep 1, 2026
This was referenced Sep 1, 2026
msonnb
added a commit
to getsentry/sentry
that referenced
this pull request
Sep 2, 2026
This adds the new `callback_error` client discard reason to usage stats. Used in SDKs to indicate that an event was discarded because a user-provided callback threw an error. ref getsentry/snuba#8422 ref https://linear.app/getsentry/project/wrap-all-sdk-user-callbacks-in-a-try-catch-6bfdbe9f7268/overview
msonnb
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Sep 2, 2026
Adds the new `callback_error` discard reason to the spec. ref getsentry/snuba#8422 ref https://linear.app/getsentry/project/wrap-all-sdk-user-callbacks-in-a-try-catch-6bfdbe9f7268/overview
msonnb
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Sep 2, 2026
…9220) Adds the new `callback_error` client discard reason to usage stats product docs. ref getsentry/sentry#123316 ref getsentry/snuba#8422 ref https://linear.app/getsentry/project/wrap-all-sdk-user-callbacks-in-a-try-catch-6bfdbe9f7268/overview
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.
This adds a new
callback_errordiscard reason for when events are dropped because a user-provided callback (likebeforeSend,tracesSampler, etc.) throws an error. Without this a user wouldn't be able to distinguish between an event being filtered because their callback worked as intended or because it threw.ref https://linear.app/getsentry/project/wrap-all-sdk-user-callbacks-in-a-try-catch-6bfdbe9f7268/overview