java.lang.Object
io.helidon.microprofile.tracing.TracerProducer

@ApplicationScoped public class TracerProducer extends Object
A producer of Tracer needed for injection into CDI beans.
  • Constructor Details

    • TracerProducer

      public TracerProducer()
  • Method Details

    • tracer

      @Produces @Dependent public Tracer tracer()
      Provides an instance of tracer currently configured.
      Returns:
      a Tracer from current Context, or GlobalTracer.get() in case we are not within a context.