Skip to content
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

Use RequestContextManager #20

Closed
iurisilvio opened this issue Aug 20, 2018 · 7 comments
Closed

Use RequestContextManager #20

iurisilvio opened this issue Aug 20, 2018 · 7 comments
Assignees
Labels

Comments

@iurisilvio
Copy link

iurisilvio commented Aug 20, 2018

Related to uber-common/opentracing-python-instrumentation#52

I'm trying to use install_all_patches() but the instrumentation spans are not attached to the current request, because this module doesn't use RequestContextManager. I think this behaviour should be the default or at least easy to setup.

@yurishkuro
Copy link

@iurisilvio RequestContextManager is a non-standard mechanism that exists only in the library you mentioned. I have a branch, based on @carlosalberto 's work, that implements support for OT 2.0 and scope managers (https://github.com/yurishkuro/opentracing-python-instrumentation/tree/ot_scopemanager_integration)

With that branch, this project still doesn't work correctly because of #18 (but I tried to hack it to use start_active_span and it works, so hopefully it will get merged here soon).

@iurisilvio
Copy link
Author

I understand. OpenTracing libs are still evolving, I'm looking forward to use them.

Thanks for your work!

@trondhindenes
Copy link

trondhindenes commented Sep 7, 2018

Same here, its (too) hard to wire up a flask app together with opentracing-python-instrumentation. As far as I understand, solving this issue will align the two libraries so that the fit together?
I guess I'm looking for a way to build this demo without all the custom gunk (which shouldn't really be necessary):
https://github.com/trondhindenes/Traefik-Flask-Opentracing-Blogpost

@wjoel
Copy link

wjoel commented Oct 15, 2018

@yurishkuro Now that #18 has been merged, is it possible to get your branch merged into opentracing-python-instrumentation and new releases of both projects with support for OT 2.0?

@wjoel
Copy link

wjoel commented Nov 13, 2018

Any update on this, @yurishkuro or @carlosalberto?

@carlosalberto
Copy link
Contributor

@wjoel @yurishkuro I've released the 1.0.0 version which supports OT 2.0 ;)

Let me know.

@ptmcg
Copy link
Collaborator

ptmcg commented Feb 29, 2024

This package is no longer being maintained, users should migrate to the opentelemetry-api package.

Closing.

@ptmcg ptmcg closed this as completed Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants