From 41509f082e52bde73c6a919f4ac0b1d02c4c0899 Mon Sep 17 00:00:00 2001 From: shivkanya9146 <62445341+shivkanya9146@users.noreply.github.com> Date: Tue, 7 Apr 2020 23:32:42 +0530 Subject: [PATCH] fix: Jaeger propagator example of usage" (#937) * fix: Jaeger propagator example of usage * fix: Jaeger propagator example of usage --- packages/opentelemetry-propagator-jaeger/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/opentelemetry-propagator-jaeger/README.md b/packages/opentelemetry-propagator-jaeger/README.md index ba02c5c683..4c7769dcc6 100644 --- a/packages/opentelemetry-propagator-jaeger/README.md +++ b/packages/opentelemetry-propagator-jaeger/README.md @@ -28,8 +28,10 @@ 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() }); ```