Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alkatrivedi committed Jan 9, 2025
1 parent b59b285 commit f03bea5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ import * as v1 from './v1';
import {
ObservabilityOptions,
ensureInitialContextManagerSet,
ensureContextPropagation,
} from './instrument';

// eslint-disable-next-line @typescript-eslint/no-var-requires
Expand Down Expand Up @@ -378,7 +377,6 @@ class Spanner extends GrpcService {
this._observabilityOptions?.enableEndToEndTracing
);
ensureInitialContextManagerSet();
ensureContextPropagation();
}

/**
Expand Down
7 changes: 0 additions & 7 deletions src/instrument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
Span,
SpanStatusCode,
context,
propagation,
trace,
INVALID_SPAN_CONTEXT,
ROOT_CONTEXT,
Expand Down Expand Up @@ -121,14 +120,8 @@ function ensureInitialContextManagerSet() {
}
}

function ensureContextPropagation() {
propagation.setGlobalPropagator(new W3CTraceContextPropagator());
}

export {ensureInitialContextManagerSet};

export {ensureContextPropagation};

/**
* startTrace begins an active span in the current active context
* and passes it back to the set callback function. Each span will
Expand Down

0 comments on commit f03bea5

Please sign in to comment.