Class MicronautCodeTelemetryFactory

java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.util.MicronautCodeTelemetryFactory

@Factory public final class MicronautCodeTelemetryFactory extends Object
An HTTP client instrumentation factory for Open Telemetry.
Since:
4.2.0
Author:
Nemanja Mikic
  • Constructor Details

    • MicronautCodeTelemetryFactory

      public MicronautCodeTelemetryFactory()
  • Method Details

    • instrumenter

      @Prototype @Requires(beans=io.opentelemetry.api.OpenTelemetry.class) @Named("micronautCodeTelemetryInstrumenter") public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.opentelemetry.instrumentation.api.instrumenter.util.ClassAndMethod,Object> instrumenter(io.opentelemetry.api.OpenTelemetry openTelemetry)
      Builds the code Open Telemetry instrumenter.
      Parameters:
      openTelemetry - the OpenTelemetry
      Returns:
      the OpenTelemetry bean with default values