MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / scopeToTraceHeader

Function scopeToTraceHeader

packages/core/src/utils/traceData.ts:90–93  ·  view source on GitHub ↗

* Get a sentry-trace header value for the given scope.

(scope: Scope)

Source from the content-addressed store, hash-verified

88 * Get a sentry-trace header value for the given scope.
89 */
90function scopeToTraceHeader(scope: Scope): string {
91 const { traceId, sampled, propagationSpanId } = scope.getPropagationContext();
92 return generateSentryTraceHeader(traceId, propagationSpanId, sampled);
93}
94
95function scopeToTraceparentHeader(scope: Scope): string {
96 const { traceId, sampled, propagationSpanId } = scope.getPropagationContext();

Callers 1

getTraceDataFunction · 0.85

Calls 2

getPropagationContextMethod · 0.80

Tested by

no test coverage detected