Annotation Interface Tracing.Traced

Enclosing class:
Tracing

@Target({TYPE,METHOD}) @Retention(RUNTIME) @Intercepted public static @interface Tracing.Traced
Marks all service methods on this type as traced, or marks a method as traced (i.e. a new span is created for each invocation of the method).

A service method is a non-private method on a ServiceRegistry service.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Span kind.
    Tags with fixed values that will be added to this span.
    Name of the span, inferred from method name by default.
  • Element Details

    • value

      String value
      Name of the span, inferred from method name by default. The value can use a template %1$s for the class name, and %2$s for the method name.
      Returns:
      span name
      Default:
      "%1$s.%2$s"
    • kind

      Span.Kind kind
      Span kind. Defaults to Span.Kind.INTERNAL. Note that if kind is set on a type to anything else than internal, it cannot be changed to internal on method level (i.e. internal is default, so we use the value from parent).

      If a method needs to use internal span kind, there must not be a type Tracing.Traced annotation.

      Returns:
      kind of the span(s) to create
      Default:
      INTERNAL
    • tags

      Tracing.Tag[] tags
      Tags with fixed values that will be added to this span.
      Returns:
      tags
      Default:
      {}