Annotation Interface Metered


@Retention(RUNTIME) @Target(METHOD) @Documented public @interface Metered
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
    If set, this value will be used as an override to the metric name that would normally be generated automatically.
     
  • Element Details

    • metricName

      String metricName
      If set, this value will be used as an override to the metric name that would normally be generated automatically. This is useful when there are metric name collisions.

      In the context of plugins, the plugin ID will always be prefixed to the metric name.

      Returns:
      Optional metric name override
      Default:
      ""
    • ignore

      boolean ignore
      Returns:
      If set to true, the associated method will not be metered.
      Default:
      false
    • tags

      String[] tags
      Returns:
      Sequence of alternating key/value tag pairs. Expects key as first element.
      Default:
      {}