Class CumulativeHistogramLongTaskTimer
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.internal.DefaultLongTaskTimer
io.micrometer.core.instrument.internal.CumulativeHistogramLongTaskTimer
- All Implemented Interfaces:
HistogramSupport
,LongTaskTimer
,Meter
Extends the default long task timer, making histogram counts cumulative over time.
- Since:
- 1.5.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.LongTaskTimer
LongTaskTimer.Builder, LongTaskTimer.Sample
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.MeterProvider<T extends Meter>, Meter.Type
-
Constructor Summary
ConstructorDescriptionCumulativeHistogramLongTaskTimer
(Meter.Id id, Clock clock, TimeUnit baseTimeUnit, DistributionStatisticConfig distributionStatisticConfig) -
Method Summary
Modifier and TypeMethodDescriptionSummary statistics should be published off of a single snapshot instance so that, for example, there isn't disagreement between the distribution's bucket counts because more events continue to stream in.Methods inherited from class io.micrometer.core.instrument.internal.DefaultLongTaskTimer
activeTasks, baseTimeUnit, duration, forEachActive, max, start
Methods inherited from class io.micrometer.core.instrument.AbstractMeter
equals, getId, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.core.instrument.distribution.HistogramSupport
takeSnapshot
-
Constructor Details
-
CumulativeHistogramLongTaskTimer
public CumulativeHistogramLongTaskTimer(Meter.Id id, Clock clock, TimeUnit baseTimeUnit, DistributionStatisticConfig distributionStatisticConfig)
-
-
Method Details
-
takeSnapshot
Description copied from interface:HistogramSupport
Summary statistics should be published off of a single snapshot instance so that, for example, there isn't disagreement between the distribution's bucket counts because more events continue to stream in.- Specified by:
takeSnapshot
in interfaceHistogramSupport
- Overrides:
takeSnapshot
in classDefaultLongTaskTimer
- Returns:
- A snapshot of all distribution statistics at a point in time.
-