Closed pavolloffay closed 6 years ago
this programming pattern can cause misalignment bugs as it encourages people to close a scope they didn't open. I left a comment here opentracing/opentracing-java#267 (comment)
I agree, however this should be changed in the OT API and not by not implementing the method correctly. The issues is that the current implementation does not work with many OT instrumentations:
sorry, the javadoc says this is only used to get the active span.
that part is implemented and you guys have no tests. This issue will be left open to encourage you to fix the api.
by the way. you personally wrote or copied most of the instrumentations that don't work. You can fix those.
Related to: https://github.com/opentracing/opentracing-java/issues/267 https://github.com/openzipkin-contrib/brave-opentracing/issues/82 and https://github.com/openzipkin-contrib/brave-opentracing/pull/74#issuecomment-380382654
Signed-off-by: Pavol Loffay ploffay@redhat.com