Annotation Interface MetricOptions


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface MetricOptions
Holds metadata about metric options to apply.
Since:
5.6.0
Author:
Haiden Rothwell
  • Field Details

    • MEMBER_TAGGERS

      static final String MEMBER_TAGGERS
      Constant value to relate to annotation's tagger values.
      See Also:
    • MEMBER_FILTER_TAGGERS

      static final String MEMBER_FILTER_TAGGERS
      Constant value to relate to annotation's filterTaggers value.
      See Also:
    • MEMBER_CONDITION

      static final String MEMBER_CONDITION
      Constant value to relate to annotation's condition value.
      See Also:
  • Element Details

    • taggers

      Class<? extends AbstractMethodTagger>[] taggers
      Returns:
      array of AbstractMethodTagger to apply to metrics for method. Only utilized for filtering if filterTaggers() is true
      Default:
      {}
    • filterTaggers

      boolean filterTaggers
      Returns:
      whether to filter taggers using taggers() array
      Default:
      false
    • condition

      String condition
      Evaluated expression that can be used to indicate whether the metric should be processed. Will be evaluated each time the method is called, and if the condition evaluates to false the metric will not be published. Evaluated using MetricOptionsUtil
      Returns:
      The condition
      Since:
      5.10.0
      See Also:
      Default:
      ""