OpenTelemetry Support

Using OpenTelemetry with Sentry.

OpenTelemetry enhances Sentry by providing support for more frameworks and libraries that:

  • Let you create more spans, for example around requests.
  • Provide Context propagation that also takes care of propagating Sentry Scopes, ensuring things like tags and other information end up on the correct event.
  • Extract tracing information from incoming requests and consumed messages.
  • Inject tracing information into outgoing requests and produced messages.

Please take a look at the OpenTelemetry GitHub repository for a full list of available instrumentations.

In some cases there is instrumentation available by both OpenTelemetry and Sentry. In this case we automatically configure the Sentry instrumentation to not create spans and instead let OpenTelemetry take over.

You may use OpenTelemetry API or Sentry API to manually instrument your application. Both will end up in Sentry. If you are already using Sentry API, you can keep using it when switching over to our OpenTelemetry integration. If you already have OpenTelemetry instrumentation in place you can have the resulting spans sent to Sentry.

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").