getsentry / getsentry/sentry-rust

Propagate DSC through sentry-opentelemetry

Open
#1,163 1 comment 0 reactions 0 assignees View on GitHub
Feature Rust Traces
Dominant language
Rust
Stars
752
Forks
190
Avg merge
1h 21m
Merged PRs (30d)
5

Description

Update `sentry-opentelemetry::SentryPropagator` so OpenTelemetry users get the same Sentry DSC propagation behavior as the core transaction path. The [trace propagation spec](https://develop.sentry.dev/sdk/foundations/trace-propagation/) requires SDK propagation mechanisms to carry both `sentry-trace` and `baggage`, while the current OTel propagator handles only `sentry-trace`.

Extract `baggage` alongside `sentry-trace`, inject Sentry DSC as `baggage`, include `baggage` in `SentryPropagator::fields()`, and pass extracted DSC to the transaction context created by the OTel processor. Keep this issue propagation-only; Sentry DSC should not control OTel sampler behavior. Related: [#741](https://github.com/getsentry/sentry-rust/issues/741), [#1016](https://github.com/getsentry/sentry-rust/issues/1016).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.