@Singleton @Requires(beans=io.opentelemetry.api.trace.Tracer.class) @InterceptorBean(value=NewSpan.class) public class NewSpanOpenTelemetryTraceInterceptor extends AbstractOpenTelemetryTraceInterceptor
ContinueSpan
and NewSpan
using the Open Telemetry API.instrumenter
Constructor and Description |
---|
NewSpanOpenTelemetryTraceInterceptor(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 |
---|---|
java.lang.Object |
intercept(io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.lang.Object> context) |
getOrder, tagArguments
public NewSpanOpenTelemetryTraceInterceptor(@Named(value="micronautCodeTelemetryInstrumenter") io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.opentelemetry.instrumentation.api.util.ClassAndMethod,java.lang.Object> instrumenter)
instrumenter
- the ClassAndMethod Instrumenter