File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/platform-includes/performance/opentelemetry-setup Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
You need to register the SentrySpanProcessor and SentryPropagator with your OpenTelemetry installation:
2
2
3
3
``` js
4
- import _ as Sentry from ' @sentry/node' ;
5
- import _ as otelApi from ' @opentelemetry/api' ;
6
- import { SentrySpanProcessor } from ' @sentry/opentelemetry-node' ;
4
+ import * as Sentry from " @sentry/node" ;
5
+ import { SentrySpanProcessor } from " @sentry/opentelemetry-node" ;
6
+
7
+ import * as otelApi from " @opentelemetry/api" ;
8
+ import { getNodeAutoInstrumentations } from " @opentelemetry/auto-instrumentations-node" ;
9
+ import { OTLPTraceExporter } from " @opentelemetry/exporter-trace-otlp-grpc" ;
7
10
8
11
// Make sure to call `Sentry.init` BEFORE initializing the OpenTelemetry SDK
9
12
Sentry .init ({
10
- dsn: ' ___PUBLIC_DSN___' ,
13
+ dsn: " ___PUBLIC_DSN___" ,
11
14
// ...
12
15
});
13
16
You can’t perform that action at this time.
0 commit comments