Sentry with OTel

Learn how to link Sentry SDK traces with OpenTelemetry instrumented services.

If you're using both Sentry SDKs and OpenTelemetry instrumentation, you can link them together for end-to-end distributed tracing.

If you have a Sentry SDK on your frontend or mobile app making requests to an OTLP-instrumented backend, enable propagateTraceparent in your SDK initialization to link them into a single distributed trace. This sends the W3C traceparent header with outgoing requests, which your OTLP-instrumented backend will pick up and continue.

This gives you end-to-end visibility:

The following SDKs support the propagateTraceparent option:

If you're running both a Sentry SDK and OTel instrumentation in the same backend service, use the OTLP Integration. This forces Sentry and OTel to share the same trace ID internally, so errors captured by Sentry are automatically linked to your OTLP traces.

Coming Soon:

Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").