apple / swift-service-context

Minimal type-safe context propagation container
https://github.com/apple/swift-distributed-tracing
Apache License 2.0
66 stars 22 forks source link

+ convenience APIs since most people will never use the underlying `current` value #27

Closed ktoso closed 2 years ago

ktoso commented 2 years ago

I found the lack of this very annoying when writing documentation.

Most people will not query the Baggage.current, but it is more common to need to set it -- by library developers. This gives a nice way to do this.