File tree 2 files changed +0
-11
lines changed
2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ import * as v1 from './v1';
85
85
import {
86
86
ObservabilityOptions ,
87
87
ensureInitialContextManagerSet ,
88
- ensureContextPropagation ,
89
88
} from './instrument' ;
90
89
91
90
// eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -378,7 +377,6 @@ class Spanner extends GrpcService {
378
377
this . _observabilityOptions ?. enableEndToEndTracing
379
378
) ;
380
379
ensureInitialContextManagerSet ( ) ;
381
- ensureContextPropagation ( ) ;
382
380
}
383
381
384
382
/**
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import {
27
27
Span ,
28
28
SpanStatusCode ,
29
29
context ,
30
- propagation ,
31
30
trace ,
32
31
INVALID_SPAN_CONTEXT ,
33
32
ROOT_CONTEXT ,
@@ -100,8 +99,6 @@ const {
100
99
AsyncHooksContextManager,
101
100
} = require ( '@opentelemetry/context-async-hooks' ) ;
102
101
103
- const { W3CTraceContextPropagator} = require ( '@opentelemetry/core' ) ;
104
-
105
102
/*
106
103
* This function ensures that async/await works correctly by
107
104
* checking if context.active() returns an invalid/unset context
@@ -121,14 +118,8 @@ function ensureInitialContextManagerSet() {
121
118
}
122
119
}
123
120
124
- function ensureContextPropagation ( ) {
125
- propagation . setGlobalPropagator ( new W3CTraceContextPropagator ( ) ) ;
126
- }
127
-
128
121
export { ensureInitialContextManagerSet } ;
129
122
130
- export { ensureContextPropagation } ;
131
-
132
123
/**
133
124
* startTrace begins an active span in the current active context
134
125
* and passes it back to the set callback function. Each span will
You can’t perform that action at this time.
0 commit comments