From a209cb1d86a2e60cca530fb105c917b3ba79a6af Mon Sep 17 00:00:00 2001 From: Omkar Kirpan Date: Tue, 13 Jul 2021 10:12:19 +0530 Subject: [PATCH] docs: updates README.md fixes code samples provided in README.md for OpenTelemetry Propagator B3 --- packages/opentelemetry-propagator-b3/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/opentelemetry-propagator-b3/README.md b/packages/opentelemetry-propagator-b3/README.md index 26ad1c4bba..b4f88915bd 100644 --- a/packages/opentelemetry-propagator-b3/README.md +++ b/packages/opentelemetry-propagator-b3/README.md @@ -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 }) @@ -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: [