Closed ktoso closed 3 years ago
Moving this to the context repository
cc @tomerd @tachyonics so that's a ticket from a while ago about the protocol libs could use. Other ideas and names and shapes quite welcome :)
We could offer one which handles the logging bridge magic as separate module.
I'll be looking into this
Goals:
What if we did
This way other libs can:
Context
without being oneBaggage
Context
var zipkinTrace: ...
) on theBaggageContextCarrier
protocolWe do have disambiguation that it's the
Baggage.Context
is any other lib has aContext
type and they'd clash.For passing around:
func hello(who: String, context: BaggageContextCarrier)
hello(who: "me", context: myFrameworkSpecificContext)
hello(who: "me", context: myFrameworkSpecificContext.baggage)
which again reads quite wellcontext
๐Let's explore this idea a bit ๐