Is there an existing issue for this?
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
const Sentry = await import("@sentry/react")
Expected Result
> typeof Sentry.getTraceData
'function'
Actual Result
> typeof Sentry.getTraceData
'undefined'
Is there an existing issue for this?
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
But
getTraceDatais not exportedSteps to Reproduce
Expected Result
Actual Result