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