-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
Related to #45496
W3C Baggage defines a propagation format for arbitrary application-specific properties.
Despite being driven by the observability community, it's not related to W3C Trace-Context and could work without distributed tracing.
In .NET however, baggage API is part of the System.Diagnostics.Activity which allows to get/set baggage. It implies that users have to have distributed tracing enabled in order to propagate baggage.
To support W3C Baggage fully, .NET would need to define an API similar to OTel Baggage:
NewBaggage.Currentwould be backed up byAsyncLocalNewBaggagewould allow to add/get/remove/enumerate baggage
It could be done in a backward compatible way such that Activity.Baggage would work over NewBaggage, but it would be great to consider an alternative approach of sunsetting Activity.Baggage or at least methods allowing to add/modify it.