-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
When I use the python-grpc module on a server, the only way I can access the active span in the code is using the RPC context (that includes the span). That's because the RPC context is the only place that keeps track of the scope manager and the current active span. However, if I'm not mistaken, it's a pretty common pattern that the general opentracing module would be aligned with the tracing activity that the framework-specific module is generating.
why?
- this would enable me to access the active span anywhere my the code by calling
opentracing.tracer.active_spanwithout being required to pass the context to every function I call from the RPC. - that would enable me to generate more complex spans activity on top of the activity the python-grpc module generates. (for example, opening and closing spans for child functions of the RPC).
- that would enable third-party software products that uses or communicates with the opentracing data to be able to do so, by importing opentracing and using it anywhere it wants. (That's actually how I bumped into this issue, my company's agent is accessing the server's tracing data for advanced features)è
how?
#35
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels