Skip to content

Commit b6cc7f2

Browse files
authored
Make it more clear that Sentry SDK gives OTEL support out of the box (#10343)
1 parent 222b99c commit b6cc7f2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/platforms/javascript/common/performance/instrumentation/opentelemetry.mdx

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ notSupported:
1818
- javascript
1919
---
2020

21-
The Sentry SDK uses [OpenTelemetry](https://opentelemetry.io/) under the hood. This means that any OpenTelemetry instrumentation that emits spans will automatically be picked up by Sentry - no further configuration needed!
21+
The Sentry SDK uses [OpenTelemetry](https://opentelemetry.io/) under the hood. This means that any OpenTelemetry instrumentation that emits spans will automatically be picked up by Sentry - no further configuration needed! To start using Sentry and OpenTelemetry together, set up [Tracing and Performance Monitoring with your Sentry SDK](../).
2222

2323
## Using Custom OpenTelemetry Instrumentation
2424

@@ -50,6 +50,12 @@ Any instrumentation added like this will be automatically picked up by Sentry.
5050

5151
If you already have OpenTelemetry set up yourself, you can also use your existing setup.
5252

53+
<Note>
54+
55+
This setup is only needed if you need to add custom span processors or exporters to your OpenTelemetry setup. Most Sentry users can follow standard SDK setup to get OpenTelemetry data with their SDK.
56+
57+
</Note>
58+
5359
In this case, you need to set `skipOpenTelemetrySetup: true` in your `init({})` config, and ensure you setup all the
5460
components that Sentry needs yourself. In this case, you need to install `@sentry/opentelemetry`, and add the following:
5561

@@ -75,7 +81,7 @@ const provider = manuallySetUpOpenTelemetry();
7581
// We need a custom span processor
7682
provider.addSpanProcessor(new SentrySpanProcessor());
7783
// We need a custom propagator and context manager
78-
provier.register({
84+
provider.register({
7985
propagator: new SentryPropagator(),
8086
contextManager: new Sentry.SentryContextManager(),
8187
});

0 commit comments

Comments
 (0)