Class ContinueSpanInterceptor

java.lang.Object
io.micronaut.tracing.opentracing.interceptor.AbstractTraceInterceptor
io.micronaut.tracing.opentracing.interceptor.ContinueSpanInterceptor
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.opentracing.Tracer.class) @InterceptorBean(ContinueSpan.class) public final class ContinueSpanInterceptor extends AbstractTraceInterceptor
Implements tracing logic for ContinueSpan and NewSpan using the Open Tracing API.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • ContinueSpanInterceptor

      public ContinueSpanInterceptor(io.opentracing.Tracer tracer, io.micronaut.core.convert.ConversionService conversionService)
      Initialize the interceptor with tracer and conversion service.
      Parameters:
      tracer - for span creation and propagation across arbitrary transports
      conversionService - the ConversionService instance
  • Method Details

    • intercept

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