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
-
Field Summary
Fields inherited from class AbstractTraceInterceptor
CLASS_TAG, conversionService, METHOD_TAG, tracerFields inherited from interface io.micronaut.aop.Interceptor
ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGETFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionContinueSpanInterceptor(io.opentracing.Tracer tracer, io.micronaut.core.convert.ConversionService conversionService) Initialize the interceptor with tracer and conversion service. -
Method Summary
Methods inherited from class AbstractTraceInterceptor
getOrder, logError, populateTags, tagArgumentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.aop.MethodInterceptor
intercept
-
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 transportsconversionService- theConversionServiceinstance
-
-
Method Details
-
intercept
-