diff --git a/packages/opentelemetry-propagator-jaeger/README.md b/packages/opentelemetry-propagator-jaeger/README.md index ba02c5c6832..4c7769dcc60 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() }); ```