Content-Length: 270486 | pFad | https://github.com/getsentry/sentry-javascript/pull/16633

A7 feat(core): Allow to pass `scope` & `client` to `getTraceData` by mydea · Pull Request #16633 · getsentry/sentry-javascript · GitHub
Skip to content

feat(core): Allow to pass scope & client to getTraceData #16633

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

mydea
Copy link
Member

@mydea mydea commented Jun 18, 2025

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.
@mydea mydea requested review from Lms24 and andreiborza June 18, 2025 08:32
@mydea mydea self-assigned this Jun 18, 2025
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.99 kB - -
@sentry/browser - with treeshaking flags 23.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 flags 70.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/react 25.76 kB - -
@sentry/react (incl. Tracing) 40.79 kB +0.03% +9 B 🔺
@sentry/vue 28.36 kB - -
@sentry/vue (incl. Tracing) 40.66 kB +0.03% +9 B 🔺
@sentry/svelte 24.01 kB - -
CDN Bundle 25.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 - uncompressed 74.5 kB +0.03% +19 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 115.32 kB +0.02% +19 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 229.37 kB +0.01% +19 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 242.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/node 150.79 kB +0.02% +30 B 🔺
@sentry/node - without tracing 98.55 kB +0.03% +29 B 🔺
@sentry/aws-serverless 124.3 kB +0.03% +28 B 🔺

View base workflow run

@mydea mydea merged commit 049d0d9 into develop Jun 18, 2025
322 of 324 checks passed
@mydea mydea deleted the fn/getTraceDataScope branch June 18, 2025 09:34
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.

Support getTraceData for custom scope
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/getsentry/sentry-javascript/pull/16633

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy