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, tracer
Fields inherited from interface io.micronaut.aop.Interceptor
ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGET
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionNewSpanTraceInterceptor
(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, tagArguments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
- theConversionService
instance
-
-
Method Details
-
intercept
-