[BUG] Tracing: we should strip correation-context/and/or baggage when calling Azure services #41543
Labels
Client
This issue points to a problem in the data-plane of the library.
OpenTelemetry
OpenTelemetry instrumentation (not Monitor-specific)
Milestone
Library name and version
Azure.Core
Describe the bug
Activity.Baggage is propagated by default via Correlation-Context and can be too big:
HttpClient propagates Correlation-Context (by default) as long as it's set on the activity.
Expected behavior
Correlation-Context is user app concern and should not be passed to Azure services.
We can set all baggage items to null using
Activity.SetBaggage
. If it's proven to be unreliable/not performant, we should work with .NET to turn off baggage propagation (to specific endpoints) in BCL.Actual behavior
If users add things into their
activity.Baggage
, we propagate them along with our activitiesReproduction Steps
TBD
Environment
No response
The text was updated successfully, but these errors were encountered: