diff options
Diffstat (limited to 'kamon-core/src/main')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/MinMaxCounter.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/MinMaxCounter.scala b/kamon-core/src/main/scala/kamon/metric/MinMaxCounter.scala index 2cb01e77..cdcf3ee9 100644 --- a/kamon-core/src/main/scala/kamon/metric/MinMaxCounter.scala +++ b/kamon-core/src/main/scala/kamon/metric/MinMaxCounter.scala @@ -81,6 +81,8 @@ class SimpleMinMaxCounter(name: String, tags: Map[String, String], underlyingHis underlyingHistogram.record(currentMax) } - private[kamon] def snapshot(resetState: Boolean = true): MetricDistribution = + private[kamon] def snapshot(resetState: Boolean = true): MetricDistribution = { + sample() underlyingHistogram.snapshot(resetState) + } } |