opentracing / opentracing-javascript

OpenTracing API for Javascript (both Node and browser). 🛑 This library is DEPRECATED! https://github.com/opentracing/specification/issues/163
http://opentracing.io
Apache License 2.0
1.09k stars 108 forks source link

Trace should provide a method to get active span like other language API does #141

Open ghughal opened 4 years ago

ghughal commented 4 years ago

Java Tracer api has a way to get current active tracer.

https://github.com/opentracing/opentracing-java/blob/master/opentracing-api/src/main/java/io/opentracing/Tracer.java#L44

Javascript api should provide the same thing. Without that it becomes cumbersome to pass around root span throughout code base.