Annotation Interface Metrics.Tag

Enclosing class:
Metrics

@Repeatable(Tags.class) @Target({TYPE,METHOD}) @Retention(CLASS) public static @interface Metrics.Tag
Metric tag.

Tags can be declared on:

  • The type that contains a metered method, such tags will be applied to all meters within this type
  • The method that has a metric annotation, such tags will be applied to all meters on the method
  • In meters annotations tags property, such tags will be applied only to the single meter
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Tag key.
    Tag value.
  • Element Details

    • key

      String key
      Tag key.
      Returns:
      tag key
    • value

      String value
      Tag value.
      Returns:
      tag value