Closed nicholasamorim closed 5 years ago
We may need to relax the condition and return a dummy context.
cc @carlosalberto any thoughts?
Can we just check if the opentracing.tracer is the no-op one and return a dummy context?
Is there already a Dummy context in the code?
I have a Tornado application and as expected, I initialize the jaeger-client passing
opentracing.scope_managers.tornado.TornadoScopeManager
asscope_manager
.If tracing is off, our app simply uses the no-op tracer in
opentracing.tracer
.That's when the problems start. If we're using the no-op tracer,
traced_function
fails.RuntimeError: scope_manager is not TornadoScopeManager
Is this intentional or is this a bug?
The same problem happens when calling
request_context.span_in_stack_context
while using the no-op tracer.