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

    Constructors
    Constructor
    Description
    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)
     
  • Method Summary

    Methods inherited from class io.micrometer.common.annotation.AnnotationHandler

    addAnnotatedParameters, getExpressionResolverProvider, getResolverProvider

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)