fix: Fix/8352 source map stack trace#8467
Merged
Merged
Conversation
- Make error stacks also available by the error instance stack - Preserve error stack filtered content - Like we do in metamask-extension - Improve error debugging in Sentry https://github.com/endojs/endo/blob/master/packages/ses/docs/reference.md#options-quick-reference https://github.com/MetaMask/metamask-extension/blob/develop/app/scripts/lockdown-run.js#L6
- Show full raw error info for each deep stack lvl - Preserve 'noise' that the default 'concise' option removes - Improve error debugging in Sentry https://github.com/endojs/endo/blob/master/packages/ses/docs/reference.md#options-quick-reference
Contributor
|
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/445f3f6f-737f-424b-a5f4-908b6edae042 |
sethkfman
reviewed
Jan 31, 2024
sethkfman
reviewed
Jan 31, 2024
sethkfman
reviewed
Jan 31, 2024
leotm
reviewed
Jan 31, 2024
leotm
reviewed
Jan 31, 2024
leotm
reviewed
Feb 1, 2024
leotm
approved these changes
Feb 1, 2024
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
These changes fixes incorrect stack traces for errors on Sentry. Changes include:
SENTRY_DISABLE_AUTO_UPLOAD = falseFuture improvements
Loggerclass withbeforeSendandbeforeBreadcrumbsin Sentry configurationRelated issues
Fixes:
Manual testing steps
Note: Reference your own Sentry instance to see results. These tests focuses on having correct source maps as well as debug files uploaded to Sentry.
SENTRY_DISABLE_AUTO_UPLOADenv var to "false"Screenshots/Recordings
Before
Broken stack traces

After
Accurate stack traces

Caveat: Some errors may show with

sesas the top level stack trace. We are working towards eliminating that layer so the error is more explicit. Drilling into the error still shows the correct trace so this is a non-blockerPre-merge author checklist
Pre-merge reviewer checklist