Annotation Type NewSpan


  • @Retention(RUNTIME)
    @Inherited
    @Target({METHOD,ANNOTATION_TYPE})
    @Type(io.micronaut.aop.InterceptorBinding.class)
    @InterceptorBinding
    public @interface NewSpan

    Indicates that a new Open Tracing span should be started.

    Annotation inspired by Spring Sleuth but using Open Tracing and Micronaut AOP.

    Since:
    1.0
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      The name of the span which will be created.
    • Element Detail

      • value

        java.lang.String value
        The name of the span which will be created. Default is the annotated method's name separated by hyphens.
        Returns:
        the key to use for the tag
        Default:
        ""