Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: open-telemetry/opentelemetry-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f9db7e59f99c7ad21f6def7cd6ebf2b64ed724a8
Choose a base ref
..
head repository: open-telemetry/opentelemetry-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9d66288c6333d25cb25eb4aa7a96224e1d5fb177
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +1 −1 packages/opentelemetry-tracing/src/export/BatchSpanProcessorBase.ts
  2. +1 −1 packages/opentelemetry-tracing/src/export/SimpleSpanProcessor.ts
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ export abstract class BatchSpanProcessorBase<T extends BufferConfig> implements
return;
}

if (span.spanContext().traceFlags !== TraceFlags.SAMPLED) {
if ((span.spanContext().traceFlags & TraceFlags.SAMPLED) === 0) {
return;
}

Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ export class SimpleSpanProcessor implements SpanProcessor {
return;
}

if (span.spanContext().traceFlags !== TraceFlags.SAMPLED) {
if ((span.spanContext().traceFlags & TraceFlags.SAMPLED) === 0) {
return;
}