Skip to content

fix(grouping): Improve handling of known React 19 errors #93995

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

Merged
merged 3 commits into from
Jun 23, 2025

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Jun 20, 2025

There are cases in which we override the value of main_exception_id in order to change which error in an exception chain we use for titling an event. In a well-formed chain, this works fine, but sometimes we see events which either a) have the root of a known chain but with nothing attached, or b) have a known chain root without a mechanism value, and we don't handle those cases gracefully.

This fixes that by a) only attempting the override if the event is in fact a chain, and b) checking for the mechanism value before trying to look at it. It also adds some test cases illustrating that even if we see degenerate cases, the algorithm doesn’t crash.

Fixes #93983
Fixes https://sentry.sentry.io/issues/6691472122

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 20, 2025

This comment was marked as duplicate.

@lobsterkatie lobsterkatie marked this pull request as ready for review June 20, 2025 21:16
@lobsterkatie lobsterkatie requested a review from a team as a code owner June 20, 2025 21:16
Copy link
Member

@yuvmen yuvmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 👍

@lobsterkatie lobsterkatie merged commit bd86e14 into master Jun 23, 2025
68 checks passed
@lobsterkatie lobsterkatie deleted the kmclb-fix-react-19-error-chain-handling branch June 23, 2025 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[grouping] Non-chain react errors crash titling hack
2 participants