Annotation Interface NewSpan


@Retention(RUNTIME) @Inherited @Target(METHOD) public @interface NewSpan
Allows to create a new span around a public method. The new span will be either a child of an existing span if a trace is already in progress or a new span will be created if there was no previous trace.

Method parameters can be annotated with SpanTag, which will end in adding the parameter value as a tag value to the span. The tag key will be the value of the key annotation from SpanTag.

Since:
1.0.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the span which will be created.
    The name of the span which will be created.
  • Element Details

    • name

      String name
      The name of the span which will be created. Default is the annotated method's name separated by hyphens.
      Returns:
      the name of the span which will be created
      Default:
      ""
    • value

      String value
      The name of the span which will be created. Default is the annotated method's name separated by hyphens.
      Returns:
      the name of the span which will be created
      Default:
      ""