You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code in the demo app that gets the current baggage and snags data from it
The .NET baggage API which defines a Current property to get/set whatever the current baggage is from the active context
This api could work similar to getActiveSpan, wherein the getActiveBaggage API just calls propagation.getBaggage(api.context.active()).
Working with baggage is much less common than getting the current/active span, though, so the relative importance is low. I just think that every time you have to write api.context.active() and you're not doing super fancy context stuff, that smells like a need for an API 🙂
The text was updated successfully, but these errors were encountered:
This is inspired by two things:
Current
property to get/set whatever the current baggage is from the active contextThis api could work similar to
getActiveSpan
, wherein thegetActiveBaggage
API just callspropagation.getBaggage(api.context.active())
.Working with baggage is much less common than getting the current/active span, though, so the relative importance is low. I just think that every time you have to write
api.context.active()
and you're not doing super fancy context stuff, that smells like a need for an API 🙂The text was updated successfully, but these errors were encountered: