Class TracerRegistryImpl

  • All Implemented Interfaces:
    TracerRegistry

    public class TracerRegistryImpl
    extends java.lang.Object
    implements TracerRegistry
    Implements TracerRegistry and provides onBind, OnUnbind for TracerWrapper to get registered from osgi registry.
    • Constructor Detail

      • TracerRegistryImpl

        public TracerRegistryImpl()
    • Method Detail

      • getTracer

        public io.opentracing.Tracer getTracer()
        Description copied from interface: TracerRegistry
        TracerRegistry.init(String) should be performed first otherwise it would return NoopTracer.
        Specified by:
        getTracer in interface TracerRegistry
        Returns:
        Tracer that was registered by TracerWrapper or by default NoopTracer.
      • onBind

        public void onBind​(TracerWrapper tracerWrapper,
                           java.util.Map properties)
      • onUnbind

        public void onUnbind​(TracerWrapper tracerWrapper,
                             java.util.Map properties)
      • init

        public void init​(java.lang.String serviceName)
        Description copied from interface: TracerRegistry
        Initialize tracer registry with servicename.
        Specified by:
        init in interface TracerRegistry
      • setTracerWrapper

        public void setTracerWrapper​(TracerWrapper tracerWrapper)