We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0dcb6 commit 24fade4Copy full SHA for 24fade4
docs/platforms/javascript/common/tracing/instrumentation/opentelemetry.mdx
@@ -29,7 +29,6 @@ const Sentry = require("@sentry/node");
29
const {
30
GenericPoolInstrumentation,
31
} = require("@opentelemetry/instrumentation-generic-pool");
32
-const { registerInstrumentations } = require("@opentelemetry/instrumentation");
33
34
Sentry.init({
35
dsn: "__DSN__",
@@ -39,9 +38,7 @@ Sentry.init({
39
38
});
40
41
// Afterwards, you can add additional instrumentation:
42
-registerInstrumentations({
43
- instrumentations: [new GenericPoolInstrumentation()],
44
-});
+Sentry.addOpenTelemetryInstrumentation(new GenericPoolInstrumentation());
45
```
46
47
Any instrumentation added like this will be automatically picked up by Sentry.
0 commit comments