Conversation

mydea

In addition to span, this allows to use this with custom client setups as well.

Usage:

const traceData = Sentry.getTraceData({ scope, client });

Closes #16618

In addition to `span`, this allows to use this with custom client setups as well.
@mydeamydea requested review from Lms24 and andreiborza June 18, 2025 08:32
@mydeamydea self-assigned this Jun 18, 2025
@github-actionsGitHub Actions

size-limit report 📦

PathSize% ChangeChange
@sentry/browser23.99 kB--
@sentry/browser - with treeshaking flags23.76 kB--
@sentry/browser (incl. Tracing)38.8 kB+0.03%+9 B 🔺
@sentry/browser (incl. Tracing, Replay)76.92 kB+0.02%+9 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags70.01 kB+0.02%+9 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas)81.69 kB+0.02%+9 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback)93.76 kB+0.01%+9 B 🔺
@sentry/browser (incl. Feedback)40.73 kB--
@sentry/browser (incl. sendFeedback)28.7 kB--
@sentry/browser (incl. FeedbackAsync)33.59 kB--
@sentry/react25.76 kB--
@sentry/react (incl. Tracing)40.79 kB+0.03%+9 B 🔺
@sentry/vue28.36 kB--
@sentry/vue (incl. Tracing)40.66 kB+0.03%+9 B 🔺
@sentry/svelte24.01 kB--
CDN Bundle25.49 kB+0.04%+10 B 🔺
CDN Bundle (incl. Tracing)38.97 kB+0.03%+11 B 🔺
CDN Bundle (incl. Tracing, Replay)74.82 kB+0.02%+9 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback)80.24 kB+0.02%+11 B 🔺
CDN Bundle - uncompressed74.5 kB+0.03%+19 B 🔺
CDN Bundle (incl. Tracing) - uncompressed115.32 kB+0.02%+19 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed229.37 kB+0.01%+19 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed242.2 kB+0.01%+19 B 🔺
@sentry/nextjs (client)42.45 kB+0.03%+9 B 🔺
@sentry/sveltekit (client)39.29 kB+0.03%+9 B 🔺
@sentry/node150.79 kB+0.02%+30 B 🔺
@sentry/node - without tracing98.55 kB+0.03%+29 B 🔺
@sentry/aws-serverless124.3 kB+0.03%+28 B 🔺

View base workflow run

@mydeamydea merged commit 049d0d9 into develop Jun 18, 2025
322 of 324 checks passed
@mydeamydea deleted the fn/getTraceDataScope branch June 18, 2025 09:34
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

Support getTraceData for custom scope