Skip to content

Commit

Permalink
Polish Javadoc for gh-4755 (#5056)
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored May 8, 2024
1 parent b619d00 commit 6ee08ab
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ public DefaultMeterObservationHandler(MeterRegistry meterRegistry) {
}

/**
* Creates the handler with the defined Meters to use when the handler processes the
* Observations.
* Creates the handler with the defined IgnoredMeters to use when the handler
* processes the Observations.
* @param meterRegistry the MeterRegistry to use
* @param metersToIgnore the Meters that should not be created when Observations are
* handled
* @since 1.13.0
*/
public DefaultMeterObservationHandler(MeterRegistry meterRegistry, IgnoredMeters... metersToIgnore) {
this.meterRegistry = meterRegistry;
Expand Down Expand Up @@ -115,6 +116,11 @@ private List<Tag> createTags(Observation.Context context) {
return tags;
}

/**
* Meter types to ignore.
*
* @since 1.13.0
*/
public enum IgnoredMeters {

LONG_TASK_TIMER
Expand Down

0 comments on commit 6ee08ab

Please sign in to comment.