We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b8803d commit c0e8566Copy full SHA for c0e8566
packages/opentelemetry/src/propagator.ts
@@ -198,7 +198,8 @@ export function getInjectionData(context: Context): {
198
} {
199
const span = trace.getSpan(context);
200
201
- // 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
202
+ // Instead, we use a virtual (generated) spanId for propagation
203
if (span && span.spanContext().isRemote) {
204
const spanContext = span.spanContext();
205
const dynamicSamplingContext = getDynamicSamplingContextFromSpan(span);
0 commit comments