Skip to content

bugsnag: chain-aware grouping key and chain title in error list#262

Open
morgan-wowk wants to merge 1 commit into
graphite-base/262from
bugsnag-error-chain
Open

bugsnag: chain-aware grouping key and chain title in error list#262
morgan-wowk wants to merge 1 commit into
graphite-base/262from
bugsnag-error-chain

Conversation

@morgan-wowk
Copy link
Copy Markdown
Collaborator

@morgan-wowk morgan-wowk commented May 28, 2026

normalize_error_chain walks __cause__/__context__ and joins each level's normalized string with " <- ". This replaces the single-exception normalize_error_message call used for the grouping key so that "LauncherError <- TimeoutError" and "LauncherError <- ApiException" land in separate, stable groups rather than collapsing into one group per root cause.

build_chain_title does the same walk but truncates each level to 80 chars and returns None for single exceptions. _before_notify uses it to override the root-cause errorClass that Bugsnag displays in the error list, giving reviewers the full raise path at a glance without needing to open the stacktrace.

Copy link
Copy Markdown
Collaborator Author

morgan-wowk commented May 28, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

normalize_error_chain walks __cause__/__context__ and joins each
level's normalized string with " <- ".  This replaces the single-
exception normalize_error_message call used for the grouping key so
that "LauncherError <- TimeoutError" and "LauncherError <- ApiException"
land in separate, stable groups rather than one per root cause.

build_chain_title does the same walk but truncates each level to 80
chars and returns None for single exceptions.  _before_notify uses it
to override the root-cause errorClass shown in the Bugsnag error list,
giving reviewers the full raise path at a glance.
@morgan-wowk morgan-wowk force-pushed the bugsnag-error-chain branch from 6787d59 to afad13f Compare May 28, 2026 18:49
@morgan-wowk morgan-wowk marked this pull request as ready for review May 28, 2026 18:55
@morgan-wowk morgan-wowk changed the base branch from bugsnag-grouping-strip-json to graphite-base/262 May 28, 2026 22:42
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.

1 participant