File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
docs/platforms/javascript/common/performance/instrumentation Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ const Sentry = require("@sentry/node");
5858const {
5959 SentrySpanProcessor ,
6060 SentryPropagator ,
61- SentryContextManager ,
6261 SentrySampler ,
6362} = require (" @sentry/opentelemetry" );
6463
@@ -78,13 +77,16 @@ provider.addSpanProcessor(new SentrySpanProcessor());
7877// We need a custom propagator and context manager
7978provier .register ({
8079 propagator: new SentryPropagator (),
81- contextManager: new SentryContextManager (),
80+ contextManager: new Sentry. SentryContextManager (),
8281});
8382
8483// We need our sampler to ensure the correct subset of traces is sent to Sentry
8584const provider = new BasicTracerProvider ({
8685 sampler: new SentrySampler (Sentry .getClient ()),
8786});
87+
88+ // Validate that the setup is correct
89+ Sentry .validateOpenTelemetrySetup ();
8890```
8991
9092## Using an OpenTelemetry Tracer
You can’t perform that action at this time.
0 commit comments