-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(browser): forward uncaught worker errors with their stack #24210
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
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
725ad37
fix(browser): forward uncaught worker errors with their stack
d2anamaria 5aa926f
test(browser): cover uncaught worker error forwarding
d2anamaria e1d3cae
fix(browser): Dedupe forwarded worker errors and keep their name
timfish bc5c736
Merge branch 'develop' into ana/fix/wasm/worker-uncaught
timfish 62239dd
fix(browser): Use the throwing script for the worker fallback frame
timfish 0853034
Merge branch 'develop' into ana/fix/wasm/worker-uncaught
timfish c845e9d
fix(browser): Treat an empty ErrorEvent filename as unknown
timfish 9f65b27
Merge branch 'develop' into ana/fix/wasm/worker-uncaught
timfish 37dd41b
fix(browser): Retry a failed worker forward with plain data
timfish 612ef6e
Merge branch 'develop' into ana/fix/wasm/worker-uncaught
timfish 7e4d6b9
fix(browser): Cancel the worker error event once it is forwarded
timfish 615cd67
fix(browser): Cancel worker errors only after the page acknowledged
timfish e0333b9
fix(browser): Replay only cancelled worker errors and acknowledge lat…
timfish 55d47a9
fix(browser): Skip the onerror copy only for worker errors that were …
logaretm 68328c8
test(e2e): Record worker error events on the stream that resolves the…
logaretm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
6 changes: 6 additions & 0 deletions
6
dev-packages/e2e-tests/test-applications/browser-webworker-vite/src/worker4.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import * as Sentry from '@sentry/browser'; | ||
|
|
||
| Sentry.registerWebWorker({ self }); | ||
|
|
||
| // Thrown while the worker script first runs, before the page's acknowledgement can arrive | ||
| throw new Error('Uncaught error during worker startup'); |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.