Package io.micrometer.tracing.annotation
Class SpanTagAnnotationHandler
java.lang.Object
io.micrometer.common.annotation.AnnotationHandler<SpanCustomizer>
io.micrometer.tracing.annotation.SpanTagAnnotationHandler
public class SpanTagAnnotationHandler
extends io.micrometer.common.annotation.AnnotationHandler<SpanCustomizer>
This class is able to find all methods annotated with the Micrometer Tracing
annotations. All methods mean that if you have both an interface and an implementation
annotated with Micrometer Tracing annotations then this class is capable of finding
both of them and merging into one set of tracing information.
This information is then used to add proper tags to the span from the method arguments
that are annotated with SpanTag.
Code ported from Spring Cloud Sleuth.
- Since:
- 1.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionSpanTagAnnotationHandler(Function<Class<? extends io.micrometer.common.annotation.ValueResolver>, ? extends io.micrometer.common.annotation.ValueResolver> resolverProvider, Function<Class<? extends io.micrometer.common.annotation.ValueExpressionResolver>, ? extends io.micrometer.common.annotation.ValueExpressionResolver> expressionResolverProvider) -
Method Summary
Methods inherited from class io.micrometer.common.annotation.AnnotationHandler
addAnnotatedParameters, getExpressionResolverProvider, getResolverProvider
-
Constructor Details
-
SpanTagAnnotationHandler
public SpanTagAnnotationHandler(Function<Class<? extends io.micrometer.common.annotation.ValueResolver>, ? extends io.micrometer.common.annotation.ValueResolver> resolverProvider, Function<Class<? extends io.micrometer.common.annotation.ValueExpressionResolver>, ? extends io.micrometer.common.annotation.ValueExpressionResolver> expressionResolverProvider)
-