From 72dca3e1bfe4e5756c44ef1e4f7b139c0ec6d2c5 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Tue, 21 Mar 2023 16:54:06 +0100 Subject: [PATCH] chore(otel): Update docs for using propagator (#7548) --- packages/opentelemetry-node/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/opentelemetry-node/README.md b/packages/opentelemetry-node/README.md index 551684a75c26..b75ca0ab0ef8 100644 --- a/packages/opentelemetry-node/README.md +++ b/packages/opentelemetry-node/README.md @@ -66,10 +66,9 @@ const sdk = new opentelemetry.NodeSDK({ // Sentry config spanProcessor: new SentrySpanProcessor(), + textMapPropagator: new SentryPropagator(), }); -otelApi.propagation.setGlobalPropagator(new SentryPropagator()); - sdk.start(); ```