Skip to content

Commit

Permalink
Merge f65c5c8 into 3f82ff4
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan authored May 13, 2021
2 parents 3f82ff4 + f65c5c8 commit 09f4333
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/opentelemetry-tracing/src/Tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import * as api from '@opentelemetry/api';
import {
InstrumentationLibrary,
IdGenerator,
InstrumentationLibrary,
RandomIdGenerator,
sanitizeAttributes,
} from '@opentelemetry/core';
Expand Down Expand Up @@ -87,7 +87,9 @@ export class Tracer implements api.Tracer {
const attributes = sanitizeAttributes(options.attributes);
// make sampling decision
const samplingResult = this._sampler.shouldSample(
context,
options.root
? api.setSpanContext(context, api.INVALID_SPAN_CONTEXT)
: context,
traceId,
name,
spanKind,
Expand Down

0 comments on commit 09f4333

Please sign in to comment.