OpenTracing bridge: BridgeTracing warns about deferred context setup, but how can this be avoided? #2142
Labels
bug
Something isn't working
help wanted
Extra attention is needed
pkg:bridges
Related to a bridge package
Description
I'm missing some documentation or examples of correct usage of the OpenTracing bridge. (I don't mind contributing this, but I'm not sure if my setup is correct.)
This is our code:
When I run this I always get the following warning:
This is emitted by BridgeTracer when the context was modified by its OTel tracer.
The BridgeTracer is using an instance of WrapperTracer, which respects the skip context setup.
But I noticed WrapperTracer itself calls another tracer. What is stopping this tracer from modifying the context it returns?
In fact, the tracer in sdk/trace modifies the context and is thus not compatible I guess?
Is this warning thus unavoidable? Our exported traces seem fine so I'm not sure what to do with this warning.
The text was updated successfully, but these errors were encountered: