Class MicronautHttpServerTelemetryFactory

java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.http.server.MicronautHttpServerTelemetryFactory

@Factory public final class MicronautHttpServerTelemetryFactory extends Object
An HTTP server instrumentation builder for Open Telemetry.
Since:
4.2.0
Author:
Nemanja Mikic
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Server Qualifier represents AttributesExtractor that should be used in http srver instrumenter.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.micronaut.http.HttpRequest<Object>,io.micronaut.http.HttpResponse<Object>>
    instrumenter(io.opentelemetry.api.OpenTelemetry openTelemetry, List<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<io.micronaut.http.HttpRequest<?>,io.micronaut.http.HttpResponse<?>>> extractors)
    Builds the http server Open Telemetry instrumenter.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MicronautHttpServerTelemetryFactory

      public MicronautHttpServerTelemetryFactory()
  • Method Details

    • instrumenter

      @Prototype @Requires(beans=io.opentelemetry.api.OpenTelemetry.class) @Named("micronautHttpServerTelemetryInstrumenter") public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.micronaut.http.HttpRequest<Object>,io.micronaut.http.HttpResponse<Object>> instrumenter(io.opentelemetry.api.OpenTelemetry openTelemetry, @Server List<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<io.micronaut.http.HttpRequest<?>,io.micronaut.http.HttpResponse<?>>> extractors)
      Builds the http server Open Telemetry instrumenter.
      Parameters:
      openTelemetry - the OpenTelemetry
      extractors - the list of AttributesExtractor
      Returns:
      the http server Open Telemetry instrumenter