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

fix(core): Narrow filters for health check transactions #9257

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Oct 16, 2023

As reported internally via Slack, our filters for health check transactions (which we unfortunately added to the SDK a while ago) were partially far too broad, filtering out transactions like /delivery because they matched the /^.*live.*$/ regex. This PR narrows down the regexes so that they no longer only require a partial but a full match.

I'd still rather nuke the entire filters array, given that we filter on the backend anyway, but there's a point to be made that the filters in the SDK avoid unnecessary traffic to Relay.

ref getsentry/team-webplatform-meta#70

@Lms24 Lms24 requested review from mydea and lforst October 16, 2023 10:07
@Lms24 Lms24 self-assigned this Oct 16, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2023

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 84.26 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.43 KB (-0.01% 🔽)
@sentry/browser - Webpack (gzipped) 22.01 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 78.79 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.6 KB (-0.01% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped) 21.02 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 254.51 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 86.76 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 62.45 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.48 KB (-0.01% 🔽)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 84.29 KB (-0.01% 🔽)
@sentry/react - Webpack (gzipped) 22.06 KB (-0.02% 🔽)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 102.2 KB (-0.01% 🔽)
@sentry/nextjs Client - Webpack (gzipped) 50.96 KB (-0.01% 🔽)

Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can always broaden certain ones again if needed 👍

@@ -428,6 +428,18 @@ describe('InboundFilters', () => {
expect(eventProcessor(TRANSACTION_EVENT_HEALTH_2, {})).toBe(TRANSACTION_EVENT_HEALTH_2);
expect(eventProcessor(TRANSACTION_EVENT_HEALTH_3, {})).toBe(TRANSACTION_EVENT_HEALTH_3);
});

it.each(['/delivery', '/already', '/healthysnacks'])(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this funny for some reason

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw before thinking of "already" my example for ready was bready 👀 😅

@Lms24 Lms24 enabled auto-merge (squash) October 16, 2023 12:24
@Lms24 Lms24 merged commit eded722 into develop Oct 16, 2023
85 checks passed
@Lms24 Lms24 deleted the lms/fix-broad-health-check-transaction-filter branch October 16, 2023 12:25
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

3 participants