We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c8f393 commit f4027dcCopy full SHA for f4027dc
packages/core/src/js/tracing/span.ts
@@ -1,6 +1,6 @@
1
import type { Client, Scope, Span, StartSpanOptions } from '@sentry/core';
2
import {
3
- generatePropagationContext,
+ generateTraceId,
4
getActiveSpan,
5
getClient,
6
getCurrentScope,
@@ -104,7 +104,7 @@ export const startIdleSpan = (
104
return new SentryNonRecordingSpan();
105
}
106
107
- getCurrentScope().setPropagationContext(generatePropagationContext());
+ getCurrentScope().setPropagationContext({ traceId: generateTraceId(), sampleRand: Math.random() });
108
109
const span = coreStartIdleSpan(startSpanOption, { finalTimeout, idleTimeout });
110
cancelInBackground(client, span);
0 commit comments