diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-04-06 02:28:45 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-04-06 02:28:45 -0300 |
commit | 58b5438784219878880252e0b13be9a7ed7c74c0 (patch) | |
tree | d048a9c89e4b9efcb29dc4a3e9a93a631eda7ab1 /kamon-core/src/main/scala/kamon/metrics/instruments/HdrRecorder.scala | |
parent | f7affbc379c26c8e92ece02256038a781c5d9d52 (diff) | |
download | Kamon-58b5438784219878880252e0b13be9a7ed7c74c0.tar.gz Kamon-58b5438784219878880252e0b13be9a7ed7c74c0.tar.bz2 Kamon-58b5438784219878880252e0b13be9a7ed7c74c0.zip |
! core: add the notion of instrument types to metric snapshots
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metrics/instruments/HdrRecorder.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metrics/instruments/HdrRecorder.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-core/src/main/scala/kamon/metrics/instruments/HdrRecorder.scala b/kamon-core/src/main/scala/kamon/metrics/instruments/HdrRecorder.scala index 28520030..ce4fd76d 100644 --- a/kamon-core/src/main/scala/kamon/metrics/instruments/HdrRecorder.scala +++ b/kamon-core/src/main/scala/kamon/metrics/instruments/HdrRecorder.scala @@ -18,7 +18,7 @@ package org.HdrHistogram import java.util.concurrent.atomic.AtomicLongFieldUpdater import scala.annotation.tailrec -import kamon.metrics.{ Scale, MetricSnapshot, MetricSnapshotLike, MetricRecorder } +import kamon.metrics._ /** * This implementation aims to be used for real time data collection where data snapshots are taken often over time. @@ -64,7 +64,7 @@ class HdrRecorder(highestTrackableValue: Long, significantValueDigits: Int, scal while (!tryUpdateTotalCount) {} - MetricSnapshot(nrOfRecordings, scale, entries.result()) + MetricSnapshot(InstrumentTypes.Histogram, nrOfRecordings, scale, entries.result()) } } |