swift-distributed-tracing
swift-distributed-tracing copied to clipboard
Task local tracer
Like https://github.com/apple/swift-log/issues/315, but for the tracer itself.
Would make testing easier.
As discussed before, this can be done with a backend that uses a task local so you can choose to use this imho. A test would use such system and then override the task local in every test it wants to. I’m not so sure with by default doing another task local lookup for the tracer to then look for the context, but we could benchmark and have that tradeoff discussion