Skip to content

Commit

Permalink
Merge 56bb707 into b67ca05
Browse files Browse the repository at this point in the history
  • Loading branch information
OmkarKirpan authored Jul 17, 2021
2 parents b67ca05 + 56bb707 commit 45421b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/opentelemetry-propagator-b3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ api.propagation.setGlobalPropagator(new B3Propagator());

```javascript
const api = require('@opentelemetry/api');
const { B3Propagator } = require('@opentelemetry/propagator-b3');
const { B3Propagator, B3InjectEncoding } = require('@opentelemetry/propagator-b3');

api.propagation.setGlobalPropagator(
new B3Propagator({ injectEncoding: B3InjectEncoding.MULTI_HEADER })
Expand All @@ -101,7 +101,8 @@ propagator.

```javascript
const api = require('@opentelemetry/api');
const { B3Propagator } = require('@opentelemetry/propagator-b3');
const { CompositePropagator } = require('@opentelemetry/core');
const { B3Propagator, B3InjectEncoding } = require('@opentelemetry/propagator-b3');
api.propagation.setGlobalPropagator(
new CompositePropagator({
propagators: [
Expand Down

0 comments on commit 45421b4

Please sign in to comment.