Skip to content

Split the single tracing layer into separate layers per telemetry type #1339

Closed

Description

@szokeasaurusrex

The Problem

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:

  1. Spans
  2. Logs
  3. Errors
  4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Rust

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions