Class ContinueSpanOpenTelemetryTraceInterceptor

java.lang.Object
io.micronaut.tracing.opentelemetry.interceptor.AbstractOpenTelemetryTraceInterceptor
io.micronaut.tracing.opentelemetry.interceptor.ContinueSpanOpenTelemetryTraceInterceptor
All Implemented Interfaces:
io.micronaut.aop.Interceptor<Object,Object>, io.micronaut.aop.MethodInterceptor<Object,Object>, io.micronaut.core.order.Ordered

@Internal @Singleton @Requires(beans=io.opentelemetry.api.trace.Tracer.class) @InterceptorBean(ContinueSpan.class) public final class ContinueSpanOpenTelemetryTraceInterceptor extends AbstractOpenTelemetryTraceInterceptor
Implements tracing logic for ContinueSpan and NewSpan using the Open Telemetry API.
Since:
4.2.0
Author:
Nemanja Mikic
  • Constructor Details

    • ContinueSpanOpenTelemetryTraceInterceptor

      public ContinueSpanOpenTelemetryTraceInterceptor(@Named("micronautCodeTelemetryInstrumenter") io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.opentelemetry.instrumentation.api.instrumenter.util.ClassAndMethod,Object> instrumenter)
      Initialize the interceptor with tracer and conversion service.
      Parameters:
      instrumenter - the ClassAndMethod Instrumenter
  • Method Details

    • intercept

      @Nullable public @Nullable Object intercept(io.micronaut.aop.MethodInvocationContext<Object,Object> context)