Skip to content

Commit c0e8566

Browse files
committed
better docs
1 parent 1b8803d commit c0e8566

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/opentelemetry/src/propagator.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ export function getInjectionData(context: Context): {
198198
} {
199199
const span = trace.getSpan(context);
200200

201-
// If we have a remote span, we need to ensure to use the span as parentSpanId, not spanId itself
201+
// 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
202203
if (span && span.spanContext().isRemote) {
203204
const spanContext = span.spanContext();
204205
const dynamicSamplingContext = getDynamicSamplingContextFromSpan(span);

0 commit comments

Comments
 (0)