diff options
author | Diego <diegolparra@gmail.com> | 2014-05-01 19:49:22 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-05-01 19:49:22 -0300 |
commit | 80f8a5d0b3a6c936453645254c1349b9691b1df2 (patch) | |
tree | ada6f152bef39a3dacbd32d3cf56eef1bdbc0984 /kamon-core/src/main/scala/kamon/metrics/instruments | |
parent | b260e19fac6fc85822c53abc4688e90b6166a0af (diff) | |
download | Kamon-80f8a5d0b3a6c936453645254c1349b9691b1df2.tar.gz Kamon-80f8a5d0b3a6c936453645254c1349b9691b1df2.tar.bz2 Kamon-80f8a5d0b3a6c936453645254c1349b9691b1df2.zip |
! core: first implementetion of kamon counter intrument and actor errors metrics
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metrics/instruments')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metrics/instruments/CounterRecorder.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/metrics/instruments/CounterRecorder.scala b/kamon-core/src/main/scala/kamon/metrics/instruments/CounterRecorder.scala index 1ab743d2..0fd56105 100644 --- a/kamon-core/src/main/scala/kamon/metrics/instruments/CounterRecorder.scala +++ b/kamon-core/src/main/scala/kamon/metrics/instruments/CounterRecorder.scala @@ -23,7 +23,9 @@ import jsr166e.LongAdder class CounterRecorder extends MetricRecorder { private val counter = new LongAdder - def record(value: Long): Unit = counter.add(value) + def record(value: Long): Unit = { + counter.add(value) + } def collect(): MetricSnapshotLike = { val sum = counter.sumThenReset() |