Skip to content

Update Rust tracing docs for new sentry-tracing layers #20289

Closed

Description

@sentry-junior

sentry-rust 0.49.4 split the tracing integration into independently selectable SpanLayer, LogLayer, ErrorLayer, and BreadcrumbLayer and deprecated sentry::integrations::tracing::layer(), SentryLayer, EventFilter, and the related filter/mapper helpers (getsentry/sentry-rust#1342, getsentry/sentry-rust#1348). The Rust docs still show only the deprecated layer() and event_filter/EventFilter APIs, so copied snippets now emit deprecation warnings.

Affected pages:

  • docs/platforms/rust/guides/tracing/index.mdx: setup snippet and the event_filter customization section
  • docs/platforms/rust/common/logs/index.mdx: tracing integration snippet and the default event_filter section
  • docs/platforms/rust/common/tracing/instrumentation/automatic-instrumentation.mdx: tracing integration snippet

Upstream references:

The other changes in 0.49.4 don't affect the docs. The MSRV bump to 1.89.0 (getsentry/sentry-rust#1365) doesn't matter because the docs don't state an MSRV. The 409 already_exists span status mapping (getsentry/sentry-rust#1353) doesn't matter because the docs don't describe status mapping.

via @szokeasaurusrex.

--

View Junior Session [Sentry]

Activity

  1. linear-code commented on Oct 28, 2026

    @linear-code
  2. added a commit that references this issue on Oct 28, 2026
    9dbe5a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions