public abstract class AbstractOpenTelemetryTraceInterceptor
extends java.lang.Object
implements io.micronaut.aop.MethodInterceptor<java.lang.Object,java.lang.Object>
ContinueSpan
and NewSpan
using the Open Telemetry API.Modifier and Type | Field and Description |
---|---|
protected io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.opentelemetry.instrumentation.api.util.ClassAndMethod,java.lang.Object> |
instrumenter |
Modifier | Constructor and Description |
---|---|
protected |
AbstractOpenTelemetryTraceInterceptor(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.opentelemetry.instrumentation.api.util.ClassAndMethod,java.lang.Object> instrumenter)
Initialize the interceptor with tracer and conversion service.
|
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
static void |
tagArguments(io.micronaut.aop.MethodInvocationContext<?,?> context) |
protected final io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.opentelemetry.instrumentation.api.util.ClassAndMethod,java.lang.Object> instrumenter
protected AbstractOpenTelemetryTraceInterceptor(@Named(value="micronautCodeTelemetryInstrumenter") io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.opentelemetry.instrumentation.api.util.ClassAndMethod,java.lang.Object> instrumenter)
instrumenter
- the ClassAndMethod Instrumenter