Skip to content

Add DSC baggage parsing and serialization #1160

Description

@szokeasaurusrex

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. The implementation should parse sentry-* baggage entries into known DSC fields, serialize populated DSC fields as sentry-<name>=<value>, 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, #1016.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions