Repository navigation
fix: Isolate user callbacks, emit client reports #7692
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1828,7 +1828,9 @@ def run_error_processors(self, event: "Event", hint: "Hint") -> "Optional[Event] | |
| ) | ||
|
|
||
| for error_processor in error_processors: | ||
| new_event = error_processor(event, exc_info) | ||
| new_event = None | ||
| with capture_internal_exceptions(): | ||
| new_event = error_processor(event, exc_info) | ||
| if new_event is None: | ||
| return self._drop(error_processor, "error processor") | ||
|
|
||
|
|
@@ -1856,7 +1858,7 @@ def run_event_processors(self, event: "Event", hint: "Hint") -> "Optional[Event] | |
| ) | ||
|
|
||
| for event_processor in event_processors: | ||
| new_event = event | ||
| new_event = None | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Processor errors leave Dedupe staleMedium Severity Event processors that throw now drop the event, but Additional Locations (1)Reviewed by Cursor Bugbot for commit d22684f. Configure here. |
||
| with capture_internal_exceptions(): | ||
| new_event = event_processor(event, hint) | ||
| if new_event is None: | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was required because without it, the
event_processorthrows, and with this PR, that means the event won't be sent. Some tests were relying on the event still being sent.