Skip to content

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Sep 18, 2025

As reported in #17674 our previous filter to exclude builtin or native stack frames from thirdPartyErrorFilterIntegration filtering logic would incorrectly still let some native frames slip through. This PR expands the check and lets the integration only consider frames with a filename (as previously) AND with at least a lineno or colno. If neither of these properties are present, we exclude them from being a factor in determining 1st vs. 3rd party.

Also added integration tests for thirdPartyErrorsFilterIntegration.

closes #17674

@Lms24 Lms24 changed the title fix(core): Ensure builtin frames do not affect thirdPartyErrorFilterIntegration fix(core): Ensure builtin stack frames don'Tt affect thirdPartyErrorFilterIntegration Sep 18, 2025
@Lms24 Lms24 changed the title fix(core): Ensure builtin stack frames don'Tt affect thirdPartyErrorFilterIntegration fix(core): Ensure builtin stack frames don't affect thirdPartyErrorFilterIntegration Sep 18, 2025
@Lms24 Lms24 self-assigned this Sep 18, 2025
Copy link
Contributor

github-actions bot commented Sep 18, 2025

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 9,032 - 9,262 -2%
GET With Sentry 1,388 15% 1,394 -0%
GET With Sentry (error only) 6,007 67% 5,999 +0%
POST Baseline 1,211 - 1,179 +3%
POST With Sentry 519 43% 560 -7%
POST With Sentry (error only) 1,059 87% 1,061 -0%
MYSQL Baseline 3,333 - 3,310 +1%
MYSQL With Sentry 463 14% 421 +10%
MYSQL With Sentry (error only) 2,717 82% 2,677 +1%

View base workflow run

@Lms24 Lms24 requested review from timfish, a team, chargome and s1gr1d and removed request for a team September 18, 2025 10:30
@Lms24 Lms24 changed the title fix(core): Ensure builtin stack frames don't affect thirdPartyErrorFilterIntegration fix(core): Ensure builtin stack frames don't affect thirdPartyErrorsFilterIntegration Sep 18, 2025
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Sep 18, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.22 kB - -
@sentry/browser - with treeshaking flags 22.74 kB - -
@sentry/browser (incl. Tracing) 40.23 kB - -
@sentry/browser (incl. Tracing, Replay) 78.6 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.27 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 83.26 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 95.49 kB - -
@sentry/browser (incl. Feedback) 40.94 kB - -
@sentry/browser (incl. sendFeedback) 28.88 kB - -
@sentry/browser (incl. FeedbackAsync) 33.78 kB - -
@sentry/react 25.93 kB - -
@sentry/react (incl. Tracing) 42.23 kB - -
@sentry/vue 28.71 kB - -
@sentry/vue (incl. Tracing) 42.04 kB - -
@sentry/svelte 24.24 kB - -
CDN Bundle 25.75 kB - -
CDN Bundle (incl. Tracing) 40.05 kB - -
CDN Bundle (incl. Tracing, Replay) 76.28 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 81.78 kB - -
CDN Bundle - uncompressed 75.23 kB - -
CDN Bundle (incl. Tracing) - uncompressed 118.58 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 233.71 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 246.47 kB - -
@sentry/nextjs (client) 44.23 kB - -
@sentry/sveltekit (client) 40.66 kB - -
@sentry/node-core 49.96 kB -0.01% -1 B 🔽
@sentry/node 151.25 kB +0.01% +2 B 🔺
@sentry/node - without tracing 91.87 kB - -
@sentry/aws-serverless 105.31 kB - -

View base workflow run

@Lms24 Lms24 changed the title fix(core): Ensure builtin stack frames don't affect thirdPartyErrorsFilterIntegration fix(core): Ensure builtin stack frames don't affect thirdPartyErrorFilterIntegration Sep 18, 2025
@Lms24 Lms24 merged commit d039640 into develop Sep 18, 2025
189 checks passed
@Lms24 Lms24 deleted the lms/fix-core-thirdPartyErrors-builtin-frames branch September 18, 2025 13:59
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.

thirdPartyErrorFilterIntegration mis-categorizing native frames in stacktrace
2 participants