Class NewSpanTraceInterceptor
java.lang.Object
io.micronaut.tracing.opentracing.interceptor.AbstractTraceInterceptor
io.micronaut.tracing.opentracing.interceptor.NewSpanTraceInterceptor
- 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(NewSpan.class)
public final class NewSpanTraceInterceptor
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 io.micronaut.tracing.opentracing.interceptor.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
ConstructorsConstructorDescriptionNewSpanTraceInterceptor(io.opentracing.Tracer tracer, io.micronaut.core.convert.ConversionService conversionService) Initialize the interceptor with tracer and conversion service. -
Method Summary
Methods inherited from class io.micronaut.tracing.opentracing.interceptor.AbstractTraceInterceptor
getOrder, logError, populateTags, tagArgumentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.aop.MethodInterceptor
intercept
-
Constructor Details
-
NewSpanTraceInterceptor
public NewSpanTraceInterceptor(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
-