Annotation Interface Traced.Method

Enclosing class:
Traced

@Documented @Retention(RUNTIME) @Target(METHOD) public static @interface Traced.Method
Marks an interface method (or its implementation) to run in a span when called through a TracedProxy.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    io.opentelemetry.api.trace.SpanKind
    Span kind.
    Span name; empty means <SimpleInterfaceName>.<method>.
  • Element Details

    • value

      String value
      Span name; empty means <SimpleInterfaceName>.<method>.
      Returns:
      name
      Default:
      ""
    • kind

      io.opentelemetry.api.trace.SpanKind kind
      Span kind.
      Returns:
      kind (default INTERNAL)
      Default:
      INTERNAL