File tree 2 files changed +9
-2
lines changed
opentelemetry-plugin-fetch/test
opentelemetry-plugin-xml-http-request/test
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,11 @@ describe('fetch', () => {
218
218
} ) ;
219
219
220
220
before ( ( ) => {
221
- api . propagation . setGlobalPropagator ( new core . B3Propagator ( ) ) ;
221
+ api . propagation . setGlobalPropagator (
222
+ new core . B3Propagator ( {
223
+ injectEncoding : core . B3InjectEncoding . MULTI_HEADER ,
224
+ } )
225
+ ) ;
222
226
} ) ;
223
227
224
228
describe ( 'when request is successful' , ( ) => {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import {
23
23
X_B3_TRACE_ID ,
24
24
isWrapped ,
25
25
NoopLogger ,
26
+ B3InjectEncoding ,
26
27
} from '@opentelemetry/core' ;
27
28
import { ZoneContextManager } from '@opentelemetry/context-zone' ;
28
29
import * as tracing from '@opentelemetry/tracing' ;
@@ -143,7 +144,9 @@ describe('xhr', () => {
143
144
} ) ;
144
145
145
146
before ( ( ) => {
146
- api . propagation . setGlobalPropagator ( new B3Propagator ( ) ) ;
147
+ api . propagation . setGlobalPropagator (
148
+ new B3Propagator ( { injectEncoding : B3InjectEncoding . MULTI_HEADER } )
149
+ ) ;
147
150
} ) ;
148
151
149
152
describe ( 'when request is successful' , ( ) => {
You can’t perform that action at this time.
0 commit comments