Class MicronautCodeTelemetryFactory
java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.util.MicronautCodeTelemetryFactory
An HTTP client instrumentation factory for Open Telemetry.
- Since:
- 4.2.0
- Author:
- Nemanja Mikic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.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.
-
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
- theOpenTelemetry
- Returns:
- the OpenTelemetry bean with default values
-