Skip to content

Refactor Bugsnag error suppression to use configurable list#2024

Open
Mbeaulne wants to merge 1 commit intomasterfrom
03-27-ignored_errors_array
Open

Refactor Bugsnag error suppression to use configurable list#2024
Mbeaulne wants to merge 1 commit intomasterfrom
03-27-ignored_errors_array

Conversation

@Mbeaulne
Copy link
Copy Markdown
Collaborator

@Mbeaulne Mbeaulne commented Mar 27, 2026

Description

Refactored the Bugsnag error filtering logic to use a centralized array of ignored error messages instead of hardcoding specific error strings. Added comprehensive documentation explaining the strict criteria for suppressing errors from Bugsnag reporting, emphasizing that this should only be used for well-understood, non-problematic errors that cannot be resolved at the source.

Related Issue and Pull requests

Type of Change

  • Cleanup/Refactor

Checklist

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

Screenshots (if applicable)

Test Instructions

  1. Verify that ResizeObserver errors are still properly filtered from Bugsnag reporting
  2. Test that other errors continue to be reported to Bugsnag as expected
  3. Confirm that the error filtering logic works correctly with the new array-based approach

Additional Comments

This change makes it easier to manage ignored error messages in the future while providing clear guidelines for when errors should be suppressed from reporting. The existing functionality remains unchanged - only the implementation has been improved for better maintainability.

@github-actions
Copy link
Copy Markdown

🎩 To tophat this PR:

You can add the following URL parameter to your browser to tophat this PR:

`?tophat_location=03-27-ignored_errors_array/3d13dee`

Copy link
Copy Markdown
Collaborator Author

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

@Mbeaulne Mbeaulne marked this pull request as ready for review March 27, 2026 12:35
@Mbeaulne Mbeaulne requested a review from a team as a code owner March 27, 2026 12:35
@Mbeaulne Mbeaulne changed the title ignored_errors_array Refactor Bugsnag error suppression to use configurable list Mar 27, 2026
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