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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
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.43 kB +0.2% +73 B 🔺
@sentry/browser (incl. Tracing, Replay) 76.48 kB +0.01% +3 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.56 kB -0.02% -7 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 81.24 kB +0.01% +5 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 93.31 kB +0.01% +1 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.4 kB +0.11% +43 B 🔺
@sentry/vue 28.4 kB +0.16% +43 B 🔺
@sentry/vue (incl. Tracing) 40.23 kB +0.06% +22 B 🔺
@sentry/svelte 24.11 kB +0.39% +92 B 🔺
CDN Bundle 25.49 kB +0.04% +10 B 🔺
CDN Bundle (incl. Tracing) 38.57 kB +0.11% +39 B 🔺
CDN Bundle (incl. Tracing, Replay) 74.45 kB +0.07% +46 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 79.91 kB +0.06% +40 B 🔺
CDN Bundle - uncompressed 74.5 kB +0.13% +90 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 114.17 kB +0.07% +74 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 228.14 kB +0.04% +74 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 240.97 kB +0.04% +74 B 🔺
@sentry/nextjs (client) 42.07 kB +0.14% +56 B 🔺
@sentry/sveltekit (client) 38.86 kB +0.05% +17 B 🔺
@sentry/node 150.44 kB +0.01% +13 B 🔺
@sentry/node - without tracing 98.35 kB +0.02% +14 B 🔺
@sentry/aws-serverless 124.11 kB +0.01% +12 B 🔺

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
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