Skip to content

Commit 72dca3e

Browse files
authored
chore(otel): Update docs for using propagator (#7548)
1 parent 7b9198f commit 72dca3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/opentelemetry-node/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ const sdk = new opentelemetry.NodeSDK({
6666

6767
// Sentry config
6868
spanProcessor: new SentrySpanProcessor(),
69+
textMapPropagator: new SentryPropagator(),
6970
});
7071

71-
otelApi.propagation.setGlobalPropagator(new SentryPropagator());
72-
7372
sdk.start();
7473
```
7574

0 commit comments

Comments
 (0)