From 60c785884c729dcfcdf7cf038d390e2aaede0ee6 Mon Sep 17 00:00:00 2001 From: shiv Date: Tue, 7 Apr 2020 13:43:43 -0400 Subject: [PATCH 1/2] fix: Jaeger propagator example of usage --- packages/opentelemetry-propagator-jaeger/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/opentelemetry-propagator-jaeger/README.md b/packages/opentelemetry-propagator-jaeger/README.md index ba02c5c683..24c5bfae29 100644 --- a/packages/opentelemetry-propagator-jaeger/README.md +++ b/packages/opentelemetry-propagator-jaeger/README.md @@ -28,9 +28,11 @@ Example of usage: const { NodeTracerProvider } = require('@opentelemetry/node'); const { JaegerHttpTracePropagator } = require('@opentelemetry/propagator-jaeger'); -const provider = new NodeTracerProvider({ - HttpTextPropagator: new JaegerHttpTracePropagator() -}); +const provider = new NodeTracerProvider(); +provider.register({ + // Use Jaeger propagator + propagator: new JaegerHttpTracePropagator() +}) ``` ## Trace on Jaeger UI From 140f9ec9bc7b4087dcbf15ca5fe3b4125041ca7a Mon Sep 17 00:00:00 2001 From: shiv Date: Tue, 7 Apr 2020 13:44:32 -0400 Subject: [PATCH 2/2] fix: Jaeger propagator example of usage --- packages/opentelemetry-propagator-jaeger/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opentelemetry-propagator-jaeger/README.md b/packages/opentelemetry-propagator-jaeger/README.md index 24c5bfae29..4c7769dcc6 100644 --- a/packages/opentelemetry-propagator-jaeger/README.md +++ b/packages/opentelemetry-propagator-jaeger/README.md @@ -32,7 +32,7 @@ const provider = new NodeTracerProvider(); provider.register({ // Use Jaeger propagator propagator: new JaegerHttpTracePropagator() -}) +}); ``` ## Trace on Jaeger UI