-
Notifications
You must be signed in to change notification settings - Fork 623
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
Help Extracting Distributed Trace #654
Comments
Hey @jon-whit, thanks for opening the issue. I think the code you have is actually really close, the only thing I changed to get it working was to update
Any action that sets a value on a context returns a new copy of the context with an updated value.
Let me know if you have any other questions! It would be awesome if you wanted to submit a PR to provide support to the falcon middleware as part of the project. |
@codeboten awesome! That worked like a charm. Good to know 👍 I'd be happy to submit a PR to provide a middleware for Falcon. Where would I make most of those changes? Would that be to the |
@jon-whit great to hear! Yes, the It might also be worth looking at the code in this repo to see if there are any cases or tests that you haven't addressed yet in your code: https://github.com/open-telemetry/opentelemetry-python-contrib/tree/master/reference/ddtrace/contrib/falcon. NOTE: The contrib repository contains code that has not yet been ported to use OpenTelemetry, it's code that was donated by DataDog and that is currently in process of being ported over (one instrumentation at a time) |
@codeboten thank you so much! I'll look into getting some contributions in for Falcon. I'll have to do it on my own time, outside of primary work business hours 👍 |
…-telemetry#636 (open-telemetry#654) * feat: warn user when a instrumented package was already required open-telemetry#636 * chore: address PR comments * chore: extract package name from require.cache * chore: use find instead of some * chore: use require.resolve to find already required modules * chore: try/catch require.resolve Co-authored-by: Mayur Kale <[email protected]>
I'm using the Python Falcon framework and I'm trying to implement a middleware to create a span for the HTTP handlers being invoked.
Here's more information on middlewares in the Falcon framework.
Here's the code I'm dealing with..
Based on my debugging I'm not getting the context set and retrieved the proper way. I'm trying to use explicit propagation (coming from a Go background). How do I achieve this with the opentelemetry-python API? I'm at a loss with the documentation. I've been trying to get this to work for a while now..
In Jaeger I don't see the trace at all, which tells me
span.end()
isn't getting called on the span created in theprocess_request
method. What's the proper way to get/set the context like I'm trying to do here?The text was updated successfully, but these errors were encountered: