SentryJohannes Daxböck, Neel ShahAnnouncement
Your OTel spans, our errors: A Sentry love story in one trace
Summary
Pointing a standalone OpenTelemetry SDK directly at Sentry ingests spans over standard OTLP, but the spans remain disconnected from Sentry error data. Because the separate SDKs share a process without sharing context, Sentry errors lack active OpenTelemetry trace and span IDs. Sentry introduced OtlpIntegration across backend SDKs including Python, Ruby, Node.js, Go, PHP, .NET, and Java to bridge this gap. The integration reads the active OpenTelemetry context, attaches trace and span identifiers to Sentry events, and configures ingestion. This decoupled model replaces the deeply integrated POTel strategy across most languages, except Java, removing mandatory OpenTelemetry dependencies while maintaining unified trace waterfalls.
Context
Using standalone OpenTelemetry SDKs with Sentry's OTLP endpoint left performance spans disconnected from Sentry error data because the separate systems shared a process but not trace context.
Approach / What changed
Sentry introduced OtlpIntegration across backend SDKs to read active OpenTelemetry trace contexts, stamp trace_id and span_id onto Sentry events, and configure standard OTLP span export to Sentry.
Takeaways
OtlpIntegration configures an OTLP exporter to Sentry and stamps active OpenTelemetry trace and span IDs onto Sentry events.
Sentry's new strategy decouples backend SDKs from mandatory OpenTelemetry dependencies and release cycles, sacrificing in-process span interleaving for broader portability.
Automatic SentryPropagator setup is being removed across SDKs to prevent conflicts with custom propagators, making composite propagation an explicit opt-in.
Source and freshness
- Source
- blog.sentry.io
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.