Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
@sentry/browser@9.5.0 @sentry/react@9.5.0
Framework Version
React 17.0.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
Under the "How Sampling Propagates in Distributed Traces" on the linked docs page. The code sample is
// Extract trace data from the current scope
const traceData = Sentry.getTraceData();
const sentryTraceHeader = traceData["sentry-trace"];
const sentryBaggageHeader = traceData["baggage"];
But getTraceData
is not exported
Steps to Reproduce
npm i -D @sentry/react
const Sentry = await import("@sentry/react")
Expected Result
> typeof Sentry.getTraceData
'function'
Actual Result
> typeof Sentry.getTraceData
'undefined'
Metadata
Metadata
Assignees
Type
Projects
Status
Waiting for: Product Owner