You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Split the single tracing layer into separate layers per telemetry type #1339
Currently, sentry-tracing exposes a single layer for capturing Tracing Spans (as Sentry transaction/spans) and Tracing Events (as Sentry errors, logs, and breadcrumbs, depending on level). Modifying what the layer captures is possible, but the API could arguably be simplified.
The current combined layer is also problematic, because it captures Sentry logs by default when enabled. However, we want to have a separate opt-in specifically for logs, as many users who enable the tracing integration may only want spans, not logs.
The Solution
As tracing layers can be composed, we can solve the problem by splitting the single sentry-tracing layer into separate layers per Sentry telemetry type:
Spans
Logs
Errors
Breadcrumbs
Of those layers, the Spans layer would be the only layer for capturing Tracing Spans. The Logs, Errors, and Breadcrumbs layers would all capture Tracing Events, but as different telemetry types.
Enabling all four layers would be equivalent to the single layer we have today. But, the recommended setup would be to only enable the first two layers (Spans and Logs), as Tracing Events most closely correspond to Sentry Logs.
Activity
linear-code commentedon Sep 29, 2026
RUST-285
feat: Split tracing integration into separate layers (#1342)