getsentry / getsentry/sentry-rust
Add DSC baggage parsing and serialization
- Dominant language
- Rust
- Stars
- 752
- Forks
- 190
- Avg merge
- 1h 21m
- Merged PRs (30d)
- 5
Description
Add W3C `baggage` conversion for `DynamicSamplingContext` so sentry-rust can read and write Sentry DSC values in the format required by the [Dynamic Sampling Context spec](https://develop.sentry.dev/sdk/foundations/trace-propagation/dynamic-sampling-context/#baggage-header). The implementation should parse `sentry-*` baggage entries into known DSC fields, serialize populated DSC fields as `sentry-=`, handle percent-decoding and percent-encoding, and expose the getters needed by `sentry-core`.
Cover supported DSC fields, empty baggage, mixed vendor baggage, malformed values, percent-encoding, and the chosen behavior for unknown future `sentry-*` keys. 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.