Class MicronautHttpServerTelemetryFactory
java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.http.server.MicronautHttpServerTelemetryFactory
An HTTP server instrumentation builder for Open Telemetry.
- Since:
- 4.2.0
- Author:
- Nemanja Mikic
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic @interfaceServer Qualifier represents AttributesExtractor that should be used in http srver instrumenter.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionio.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.
- 
Constructor Details- 
MicronautHttpServerTelemetryFactorypublic 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
 
 
-