Skip to content

Conversation

@morgan-wowk
Copy link

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

Description

Implemented error message normalization for Bugsnag to improve error grouping. This enhancement extracts dynamic values (UUIDs, IDs, hashes) from error messages and replaces them with placeholders, allowing similar errors with different dynamic values to be grouped together.

The implementation includes:

  • A new normalizeErrorMessage utility that identifies and extracts common patterns
  • Enhanced Bugsnag error handling that applies normalization to generic Error instances
  • Custom grouping hash generation for better error categorization
  • Preservation of extracted values as metadata for debugging

Type of Change

  • Improvement
  • New feature

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Test Instructions

  1. Verify that similar errors with different IDs/UUIDs are grouped together in Bugsnag
  2. Check that the extracted values are available in the error metadata
  3. Confirm that HTTP status codes are preserved and not normalized
  4. Ensure custom error classes (NetworkError, ValidationError, etc.) are not affected by normalization

Copy link
Author

morgan-wowk commented Jan 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.

@morgan-wowk morgan-wowk force-pushed the 01-26-feat_add_bugsnag_error_reporting_service_v2 branch from 43d2c0a to a0597d8 Compare January 28, 2026 22:12
@morgan-wowk morgan-wowk force-pushed the 01-26-feat_add_error_normalization_and_integrate branch 2 times, most recently from b29beaf to 7dd0dc9 Compare January 28, 2026 22:16
@morgan-wowk morgan-wowk marked this pull request as ready for review January 28, 2026 22:19
@morgan-wowk morgan-wowk requested a review from a team as a code owner January 28, 2026 22:19
@morgan-wowk morgan-wowk force-pushed the 01-26-feat_add_error_normalization_and_integrate branch from 7dd0dc9 to ca3c44a Compare January 28, 2026 22:28
Add utility to normalize error messages by extracting dynamic values (UUIDs, IDs, hashes, etc.) and replacing them with placeholders. This enables better error grouping in monitoring tools like Bugsnag.

Integrate normalization into Bugsnag error handler with custom grouping hash.
@morgan-wowk morgan-wowk force-pushed the 01-26-feat_add_error_normalization_and_integrate branch from ca3c44a to f7acc67 Compare January 28, 2026 22:33
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