Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Baggage part 1/3: change propagator signatures (#6157)
## Summary of changes First of multiple PRs to add OpenTelemetry baggage support. This PR prepares propagators to support baggage. Since all propagators are currently _trace_ propagators and work on `SpanContext`, this PR changes all propagator signatures to accept or return a new `PropationContext` instead. `PropationContext` is a light container for both the existing `SpanContext` and the new `Baggage` type. Baggage progpation across services is _not_ implemented in this PR. ## Reason for change Adding support for OpenTelemetry baggage. ## Implementation details - Add `Baggage` class - Add `PropagationContext`, which contains `SpanContext` and `Baggage` - Modify all propagator signatures (and usages) to replace `SpanContext` with `PropagationContext` ## Test coverage - added unit tests for `Baggage` (get, set, remove, etc) - existing propagators are already covered by extensive tests ## Other details <!-- Fixes #{issue} --> <!--⚠️ Note: where possible, please obtain 2 approvals prior to merging. Unless CODEOWNERS specifies otherwise, for external teams it is typically best to have one review from a team member, and one review from apm-dotnet. Trivial changes do not require 2 reviews. -->
- Loading branch information