We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22f5a1b commit d9eaee4Copy full SHA for d9eaee4
packages/opentelemetry/src/propagator.ts
@@ -195,7 +195,8 @@ export function getInjectionData(context: Context): {
195
} {
196
const span = trace.getSpan(context);
197
198
- // If we have a remote span, we need to ensure to use the span as parentSpanId, not spanId itself
+ // If we have a remote span, the spanId should be considered as the parentSpanId, not spanId itself
199
+ // Instead, we use a virtual (generated) spanId for propagation
200
if (span && span.spanContext().isRemote) {
201
const spanContext = span.spanContext();
202
const dynamicSamplingContext = getDynamicSamplingContextFromSpan(span);
0 commit comments