-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start_span
on FlaskTracer
should delegate to the underlying tracer implementation
#17
Comments
As far as I can tell, there's no reason for I do think it would make sense for While I'm personally not a great fan of explicit interfaces in Python, if you want to encode the fact that |
@jscn Actually the 'bad' name part was mentioned in the past - Still, I think we should track that (and make it a priority once we land the OT 2.0 version ;) )
|
@jscn I know it's been a while since you raised this but do you by chance still remember what it was exactly that you did to work around this? I'm having the same issue. Thanks! |
I am having this issue too |
I'm trying to manually add a span to a trace using the jaeger Python client, as described in the documentation. However in the example, the span is created by calling the underlying tracer implementation directly (
jaeger_tracer.start_span()
rather than theFlaskTracer
instance.I didn't notice this initially and attempted to call
start_span()
on myFlaskTracer
instance directly, which resulted in an error being raised from the underlyingopentracing.Tracer
:So it looks like, in order to make this work, I need to always pass around both the
FlaskTracer
instance, and the underlyingjaeger_client.Tracer
instance.Since
FlaskTracer
already has a reference to thatjaeger_client.Tracer
instance, and that instance's implementation ofstart_span
actually works, I think thatFlaskTracer
should delegate calls tostart_span
to whicheverTracer
is passed in whenFlaskTracer
is instantiated.The text was updated successfully, but these errors were encountered: