Visitar URL original
fix(sentry): drop errors exclusively containing third-party frames by sentry[bot] · Pull Request #4142 · codecov/gazebo · GitHub
Skip to content

fix(sentry): drop errors exclusively containing third-party frames - #4142

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/drop-third-party-sentry-errors-8wQKpM
Open

sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/drop-third-party-sentry-errors-8wQKpM

Conversation

@sentry

@sentry sentry Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Description

Configures Sentry's thirdPartyErrorFilterIntegration with drop-error-if-exclusively-contains-third-party-frames instead of apply-tag-if-contains-third-party-frames.

Why

Several unhandled errors captured in production (e.g. GAZEBO-189Q, GAZEBO-187X: RangeError: Maximum call stack size exceeded.) are caused by scripts injected into the page by third parties, such as Chrome iOS's page translator recursing infinitely over translated DOM nodes. Their call stacks contain no gazebo bundle frames.

Notable Changes

What changed

  • Switched behaviour on thirdPartyErrorFilterIntegration to drop events whose stack frames are exclusively third-party code.
  • Gazebo bundles configure applicationKey: 'gazebo' in vite.config.mjs, matching filterKeys: ['gazebo'], so errors containing any first-party gazebo frames will continue to be reported.

Legal Boilerplate

Look, I get it. The entity doing business as "Codecov" is owned by Harness, Inc. In 2026 Harness acquired Codecov and as a result Harness is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Harness can use, modify, copy, and redistribute my contributions, under Harness's choice of terms.

Fixes GAZEBO-189Q

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.


Note

Low Risk
Observability-only change that filters Sentry noise; first-party errors with any gazebo stack frame are unchanged.

Overview
Sentry third-party error handling now drops events whose stack traces contain only non–gazebo frames, instead of tagging any event that includes third-party frames.

Errors that include at least one frame from the gazebo bundle (via filterKeys: ['gazebo'], aligned with applicationKey: 'gazebo' in the Vite build) are still sent. This targets noise from browser extensions and injected scripts (e.g. Chrome iOS page translator stack overflows) that never touch application code.

Reviewed by Cursor Bugbot for commit 6020fff. Bugbot is set up for automated code reviews on this repo. Configure here.

@sentry

sentry Bot commented Oct 17, 2026

Copy link
Copy Markdown
Author

⚠️ Sentry needs additional GitHub App permissions

The Sentry GitHub App installation for this repository is missing permissions it needs to keep iterating on this pull request to get CI passing.

Review and accept the updated permissions to let Seer continue: https://github.com/organizations/codecov/settings/installations/86101127/permissions/update

@codecov

codecov Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 26 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.82MB 13 bytes (0.0%) ⬆️
gazebo-production-esm 5.89MB 13 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-production-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js 13 bytes 577.83kB 0.0%

Files in assets/index.*.js:

  • ./src/sentry.ts → Total Size: 5.1kB
view changes for bundle: gazebo-production-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js 13 bytes 657.83kB 0.0%

Files in assets/index-legacy.*.js:

  • ./src/sentry.ts → Total Size: 5.11kB

This branch has not been deployed

No deployments
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.

0 participants