Annotation Interface Tracing.ParamTag

Enclosing class:
Tracing

@Target(PARAMETER) @Retention(RUNTIME) public static @interface Tracing.ParamTag
Tracing tag declared as a method parameter. Tags are added to spans (alternative term is Span Attribute).

Tag key is either explicitly defined, or inferred from the parameter name, tag value is the parameter value.

Note that when this annotation is used with runtime processing (i.e. in Helidon MP), the value MUST be defined, as names of parameters are not retained in compiled Java classes.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Tag key.
  • Element Details

    • value

      String value
      Tag key. Defaults to parameter name.
      Returns:
      tag key
      Default:
      ""