Skip to content
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

feat(core): Filter out noisy GoogleTag error by default #11208

Merged
merged 1 commit into from Mar 20, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Mar 20, 2024

We received reports about this error

TypeError: Cannot redefine property: googletag

being thrown and reported to Sentry. It's a noisy error where we strongly suspect that browser extensions interfere with our users' apps. In an effort to quickly reduce noise, this PR adds the error message to our SDK inboundFilters integration.

Side-note: In my opinion we cannot continue adding such filters SDK-side long-term. For the moment we have to because other SDK areas like Replay or spans would incorrectly change their state on an error we first send to Sentry but later on drop in Relay. However, long-term, I strongly think connecting (and sampling) has to happen server side. Otherwise our SDK grows and bundlesize inevitably increases.

Copy link
Contributor

github-actions bot commented Mar 20, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) 80.73 KB (added)
@sentry/browser (incl. Tracing, Replay) 72.08 KB (added)
@sentry/browser (incl. Tracing, Replay with Canvas) 75.88 KB (added)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 65.64 KB (added)
@sentry/browser (incl. Tracing) 36.68 KB (added)
@sentry/browser (incl. browserTracingIntegration) 36.68 KB (added)
@sentry/browser (incl. feedbackIntegration) 31.35 KB (added)
@sentry/browser (incl. feedbackModalIntegration) 31.47 KB (added)
@sentry/browser (incl. feedbackScreenshotIntegration) 31.48 KB (added)
@sentry/browser (incl. sendFeedback) 27.43 KB (added)
@sentry/browser 22.6 KB (added)
CDN Bundle (incl. Tracing, Replay, Feedback) 75.07 KB (added)
CDN Bundle (incl. Tracing, Replay) 69.92 KB (added)
CDN Bundle (incl. Tracing) 36.27 KB (added)
CDN Bundle 23.97 KB (added)
CDN Bundle (incl. Tracing, Replay) - uncompressed 219.58 KB (added)
CDN Bundle (incl. Tracing) - uncompressed 109.53 KB (added)
CDN Bundle - uncompressed 71 KB (added)
@sentry/react (incl. Tracing, Replay) 72.07 KB (added)
@sentry/react 22.63 KB (added)

@Lms24 Lms24 force-pushed the lms/feat-filter-googletag-errors branch from a1a8698 to 47f2f6c Compare March 20, 2024 11:55
@Lms24 Lms24 requested review from HazAT, a team and AbhiPrasad and removed request for a team March 20, 2024 11:58
@Lms24 Lms24 merged commit 37abbd1 into develop Mar 20, 2024
92 checks passed
@Lms24 Lms24 deleted the lms/feat-filter-googletag-errors branch March 20, 2024 14:12
Lms24 added a commit that referenced this pull request Mar 20, 2024
…ers (#11210)

Backport two additional default error event filters to our
`inboundFilters` integration:

* #10845 
* #11208
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
)

We received reports about this error

```
TypeError: Cannot redefine property: googletag
```

being thrown and reported to Sentry. It's a noisy error where we
strongly suspect that browser extensions interfere with our users' apps.
In an effort to quickly reduce noise, this patch adds the error message to
our SDK `inboundFilters` integration.
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.

None yet

2 participants