You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implementation of tracer provider could be standardized e.g. smallrye project could provide a basic implementation. The producer would provide GlobalTracer.get() as a bean. Configuration and tracer resolution would still be vendor specific.
GlobalTracer is directly provided by OT API and nicely fits into ecosystem of instrumentations
The current implementation of the GlobalTracer stores the tracer in a static field, making it tricky to support different concrete tracers for different applications on a single JVM (which is the usual case for application servers).
One possible solution is for runtimes to provide their own tracers and register them with the GlobalTracer. This custom tracer would then retrieve the concrete tracer from, say, the servlet context. This would then require a standard to be set for the servlet context attribute name to store the tracer.
@jpkrohling had a great question: why the tracer is not registered into
GlobalTracer
?At the moment spec only defines that the tracer should be available via CDI. Here is some documentation of
GlobalTracer
https://github.com/opentracing/opentracing-java/tree/master/opentracing-util#globaltracerBenefits
GlobalTracer.get()
as a bean. Configuration and tracer resolution would still be vendor specific.Drawbacks
unwrap
on the tracer should solve this problem Add unwrap to interfaces opentracing/opentracing-java#282.The text was updated successfully, but these errors were encountered: