Skip to content

ref(browser): Ensure fetch transport has tracing suppressed #16532

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

Closed
wants to merge 1 commit into from

Conversation

mydea
Copy link
Member

@mydea mydea commented Jun 10, 2025

Noticed that this was missing, should be fine to do that!

@mydea mydea self-assigned this Jun 10, 2025
Copy link
Contributor

github-actions bot commented Jun 10, 2025

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 24.08 kB +0.38% +90 B 🔺
@sentry/browser - with treeshaking flags 23.85 kB +0.4% +93 B 🔺
@sentry/browser (incl. Tracing) 38.87 kB +0.21% +80 B 🔺
@sentry/browser (incl. Tracing, Replay) 76.93 kB +0.02% +12 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70 kB +0.01% +1 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 81.69 kB +0.02% +12 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 93.76 kB +0.01% +6 B 🔺
@sentry/browser (incl. Feedback) 40.82 kB +0.24% +94 B 🔺
@sentry/browser (incl. sendFeedback) 28.79 kB +0.32% +89 B 🔺
@sentry/browser (incl. FeedbackAsync) 33.68 kB +0.27% +90 B 🔺
@sentry/react 25.85 kB +0.37% +95 B 🔺
@sentry/react (incl. Tracing) 40.8 kB +0.05% +19 B 🔺
@sentry/vue 28.41 kB +0.15% +42 B 🔺
@sentry/vue (incl. Tracing) 40.67 kB +0.04% +16 B 🔺
@sentry/svelte 24.11 kB +0.39% +92 B 🔺
CDN Bundle 25.49 kB +0.04% +10 B 🔺
CDN Bundle (incl. Tracing) 38.99 kB +0.08% +28 B 🔺
CDN Bundle (incl. Tracing, Replay) 74.86 kB +0.06% +43 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 80.26 kB +0.04% +30 B 🔺
CDN Bundle - uncompressed 74.5 kB +0.03% +15 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 115.31 kB +0.02% +15 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 229.37 kB +0.01% +15 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 242.19 kB +0.01% +15 B 🔺
@sentry/nextjs (client) 42.49 kB +0.13% +53 B 🔺
@sentry/sveltekit (client) 39.3 kB +0.05% +18 B 🔺
@sentry/node 150.76 kB - -
@sentry/node - without tracing 98.52 kB - -
@sentry/aws-serverless 124.27 kB - -

View base workflow run

Comment on lines +48 to +49
return suppressTracing(() => {
return nativeFetch(options.url, requestOptions).then(response => {
Copy link
Member

Choose a reason for hiding this comment

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

wait this seems off. Why would we need to suppress tracing when using nativeFetch? Shouldn't this be instrumentation-free in the first place?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, this seems to be true, this is not triggering anything anyhow. Maybe we can just remove the comment and call it a day 😅

Copy link
Member

Choose a reason for hiding this comment

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

yeah I don't see us switching to browser OTel anytime soon 😅

@mydea mydea force-pushed the fn/suppress-tracing-browser-fetch branch from 0c4ba76 to 8acf5d1 Compare June 11, 2025 09:58
@mydea mydea force-pushed the fn/suppress-tracing-browser-fetch branch from 8acf5d1 to d82d630 Compare June 17, 2025 10:20
@mydea mydea closed this Jun 17, 2025
mydea added a commit that referenced this pull request Jun 17, 2025
Replaces #16532

Updates the comment in the browser fetch transport to explain why we do
not need to suppress tracing there.
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.

2 participants