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 Summary
Modifier and TypeClassDescriptionstatic @interface
Server Qualifier represents AttributesExtractor that should be used in http srver instrumenter. -
Constructor Summary
-
Method Summary
Modifier 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
-
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
- theOpenTelemetry
extractors
- the list ofAttributesExtractor
- Returns:
- the http server Open Telemetry instrumenter
-