File tree 1 file changed +4
-2
lines changed
docs/platforms/javascript/common/performance/instrumentation
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");
58
58
const {
59
59
SentrySpanProcessor ,
60
60
SentryPropagator ,
61
- SentryContextManager ,
62
61
SentrySampler ,
63
62
} = require (" @sentry/opentelemetry" );
64
63
@@ -78,13 +77,16 @@ provider.addSpanProcessor(new SentrySpanProcessor());
78
77
// We need a custom propagator and context manager
79
78
provier .register ({
80
79
propagator: new SentryPropagator (),
81
- contextManager: new SentryContextManager (),
80
+ contextManager: new Sentry. SentryContextManager (),
82
81
});
83
82
84
83
// We need our sampler to ensure the correct subset of traces is sent to Sentry
85
84
const provider = new BasicTracerProvider ({
86
85
sampler: new SentrySampler (Sentry .getClient ()),
87
86
});
87
+
88
+ // Validate that the setup is correct
89
+ Sentry .validateOpenTelemetrySetup ();
88
90
```
89
91
90
92
## Using an OpenTelemetry Tracer
You can’t perform that action at this time.
0 commit comments