Class TracerRegistryImpl

    • 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.
      • onUnbind

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

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

        public void setTracerWrapper​(TracerWrapper tracerWrapper)