Interface TracerRegistry

  • All Known Implementing Classes:
    TracerRegistryImpl

    public interface TracerRegistry
    This registry will fetch the tracer from any @TracerWrapper that was already registered. If no @TracerWrapper is registered, it will get @NoopTracer from GlobalTracer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.opentracing.Tracer getTracer()
      init(String) should be performed first otherwise it would return NoopTracer.
      void init​(java.lang.String serviceName)
      Initialize tracer registry with servicename.
    • Method Detail

      • getTracer

        io.opentracing.Tracer getTracer()
        init(String) should be performed first otherwise it would return NoopTracer.
        Returns:
        Tracer that was registered by TracerWrapper or by default NoopTracer.
      • init

        void init​(java.lang.String serviceName)
        Initialize tracer registry with servicename.
        Parameters:
        serviceName -