-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add Tracer#start_active_scope and deprecate Tracer#start_active_span #36
Conversation
After some discussion in opentracing/opentracing-python#64 (comment) and in the cross-language gitter, it was decided that #start_active_scope makes more sense than #start_active_span because the return type is a Scope, not a Span. Python and other similar languages will also change it.
My thoughts just for the record:
IMO this change introduces more confusion than it solves. |
Hey @pglombardo Thanks for the feedback. My impression is that there's no perfect solution here - so it's a matter of choosing which one is the 'best' (which, well, can also be subjective ;) ) Was wondering if I can quote (or copy & paste) your comment for opentracing/opentracing-python#89 ? ;) |
If it's helpful, by all means... |
I've seen this conversation in progress. Thanks for taking on this update @indrekj. @carlosalberto @tedsuo Is this decision baked enough that it's ready to go into an official release, or is there a debate ongoing? I would like to merge this if the decision is reasonably final. If not, we could make this available in a separate branch for the time being. |
Hello everyone! I have some thoughts about this change:
My suggestions are:
|
Hey @palazzem thanks for the feedback. Regarding the RFC, I think it could be part of the ongoing https://github.com/opentracing/specification/blob/master/rfc/scope_manager.md - as we will be moving it to TEST stage, we can start defining specific requirements or strong suggestions for the names.
There was some talk around this from @tedsuo on providing a hight level API (on top of the current API we all use) that wouldn't be exposing so much details. This could go in that direction. |
Thanks for the feedback. There is general agreement that a simpler solution is needed for common use cases. However, it's an open question as to how to implement it. I think this is a cross-language issue which will take some time to resolve. I'd prefer not to hold up the release of this version of the Python API, as Scopes are useful and this version is ready to go. Given that |
After some discussion in
opentracing/opentracing-python#64 (comment)
and in the cross-language gitter, it was decided that #start_active_scope
makes more sense than #start_active_span because the return type is a
Scope, not a Span. Python and other similar languages will also change it.