Skip to content

Commit f4027dc

Browse files
committed
propagationContext changes getsentry/sentry-javascript#14482
1 parent 0c8f393 commit f4027dc

File tree

1 file changed

+2
-2
lines changed
  • packages/core/src/js/tracing

1 file changed

+2
-2
lines changed

packages/core/src/js/tracing/span.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Client, Scope, Span, StartSpanOptions } from '@sentry/core';
22
import {
3-
generatePropagationContext,
3+
generateTraceId,
44
getActiveSpan,
55
getClient,
66
getCurrentScope,
@@ -104,7 +104,7 @@ export const startIdleSpan = (
104104
return new SentryNonRecordingSpan();
105105
}
106106

107-
getCurrentScope().setPropagationContext(generatePropagationContext());
107+
getCurrentScope().setPropagationContext({ traceId: generateTraceId(), sampleRand: Math.random() });
108108

109109
const span = coreStartIdleSpan(startSpanOption, { finalTimeout, idleTimeout });
110110
cancelInBackground(client, span);

0 commit comments

Comments
 (0)