Skip to content

Commit

Permalink
better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Nov 29, 2024
1 parent 1b8803d commit c0e8566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/opentelemetry/src/propagator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export function getInjectionData(context: Context): {
} {
const span = trace.getSpan(context);

// 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
// Instead, we use a virtual (generated) spanId for propagation
if (span && span.spanContext().isRemote) {
const spanContext = span.spanContext();
const dynamicSamplingContext = getDynamicSamplingContextFromSpan(span);
Expand Down

0 comments on commit c0e8566

Please sign in to comment.