If you’ve already instrumented your app with OpenTelemetry, you don’t have to rip it out to use Sentry. Two environment variables and your logs start flowing into Sentry, no SDK changes, no re-instrumentation. Here’s how to set it up in a sample app, and when the native Sentry SDK might be the better call.

Why you’d use OTLP instead of the native SDK

The main advantage of OTLP is that your logging code stays decoupled from any specific observability backend. You can switch where logs go by changing a few config lines. That’s useful if you:

Already have OpenTelemetry logging in place

Want to send logs to multiple backends