@Factory
public final class MicronautHttpServerTelemetryFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MicronautHttpServerTelemetryFactory.Server
Server Qualifier represents AttributesExtractor that should be used in http srver instrumenter.
|
Constructor and Description |
---|
MicronautHttpServerTelemetryFactory() |
Modifier and Type | Method and Description |
---|---|
io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.micronaut.http.HttpRequest<java.lang.Object>,io.micronaut.http.HttpResponse<java.lang.Object>> |
instrumenter(io.opentelemetry.api.OpenTelemetry openTelemetry,
java.util.List<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<io.micronaut.http.HttpRequest<?>,io.micronaut.http.HttpResponse<?>>> extractors)
Builds the http server Open Telemetry instrumenter.
|
@Prototype @Requires(beans=io.opentelemetry.api.OpenTelemetry.class) @Named(value="micronautHttpServerTelemetryInstrumenter") public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.micronaut.http.HttpRequest<java.lang.Object>,io.micronaut.http.HttpResponse<java.lang.Object>> instrumenter(io.opentelemetry.api.OpenTelemetry openTelemetry, @MicronautHttpServerTelemetryFactory.Server java.util.List<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<io.micronaut.http.HttpRequest<?>,io.micronaut.http.HttpResponse<?>>> extractors)
openTelemetry
- the OpenTelemetry
extractors
- the list of AttributesExtractor