OpenTelemetry Agentless
Using OpenTelemetry with sentry-opentelemetry-agentless.
If you do not want to use our recommended Java Agent, we also offer a dependency that allows you to use OpenTelemetry with Sentry.
In addition to the Sentry Spring Boot SDK, you will need to add sentry-opentelemetry-agentless-spring
as a dependency:
Copied
implementation 'io.sentry:sentry-opentelemetry-agentless-spring:8.8.0'
You'll have to configure both OpenTelemetry and Sentry to see transactions in Sentry and have errors linked to transactions created by OpenTelemetry.
Our sentry-opentelemetry-agentless-spring
dependency also adds opentelemetry-spring-boot-starter
which takes care of configuring OpenTelemetry to work with Sentry.
Enable the Sentry propagator for OpenTelemetry by adding the following to your Spring configuration:
Copied
sentry.dsn=https://examplePublicKey@o0.ingest.sentry.io/0
sentry.traces-sample-rate=1.0
otel.propagators=sentry
The Sentry Spring Boot SDK will take care of the rest.
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").
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").