fix(sentry): Filter third-party global handler noise with no stack frames#18340
Closed
cursor[bot] wants to merge 1 commit into
Closed
fix(sentry): Filter third-party global handler noise with no stack frames#18340cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
…ames Add "^he$" to ignoreErrors to drop the specific minified "Error: he" from browser extensions/injected scripts. Also add a beforeSend filter that drops any error event with a single exception and zero stack frames — these are never actionable and always originate from third-party code outside the instrumented bundle. The existing thirdPartyErrorFilterIntegration only handles errors with third-party frames; this closes the gap for errors with no frames at all. Fixes DOCS-AVV Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
DESCRIBE YOUR PR
Filter out "Error: he" and similar noise from third-party/injected scripts (browser extensions) that the global
window.onerrorhandler captures on the client.Two-layer fix in
src/instrumentation-client.ts:ignoreErrors: Added/^he$/pattern to drop the specific minified "Error: he" message by name.beforeSend: Added a filter that drops any error event containing a single exception with zero stack frames. These events are never actionable — they originate from third-party code outside the instrumented Next.js bundle and provide no usable debugging information.The existing
thirdPartyErrorFilterIntegration(withdrop-error-if-exclusively-contains-third-party-frames) already handles errors that have third-party frames. This fix closes the gap for errors with no frames at all.Fixes DOCS-AVV
IS YOUR CHANGE URGENT?
PRE-MERGE CHECKLIST