diff options
author | Lukas Stefaniak <lustefaniak@gmail.com> | 2015-05-12 22:32:37 +0200 |
---|---|---|
committer | Lukas Stefaniak <lustefaniak@gmail.com> | 2015-05-12 22:32:37 +0200 |
commit | 77444a077143842594a05934792c0ca6a221d02e (patch) | |
tree | 9a182d417ad1fbb85ec1c24a748e12454d97f88c /kamon-core/src | |
parent | 3c09d9c135a99d7374d94d8b15e0e32897607276 (diff) | |
download | Kamon-77444a077143842594a05934792c0ca6a221d02e.tar.gz Kamon-77444a077143842594a05934792c0ca6a221d02e.tar.bz2 Kamon-77444a077143842594a05934792c0ca6a221d02e.zip |
= core: Fix usage of GaugeKey for gauges in MetricsModule
Diffstat (limited to 'kamon-core/src')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/MetricsModule.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/MetricsModule.scala b/kamon-core/src/main/scala/kamon/metric/MetricsModule.scala index 9f2bbbef..ff622443 100644 --- a/kamon-core/src/main/scala/kamon/metric/MetricsModule.scala +++ b/kamon-core/src/main/scala/kamon/metric/MetricsModule.scala @@ -281,7 +281,7 @@ private[kamon] class MetricsModuleImpl(config: Config) extends MetricsModule { val gaugeEntity = Entity(name, SingleInstrumentEntityRecorder.Gauge, tags) val recorder = _trackedEntities.atomicGetOrElseUpdate(gaugeEntity, { val factory = instrumentFactory(gaugeEntity.category) - GaugeRecorder(MinMaxCounterKey(gaugeEntity.category, unitOfMeasurement.getOrElse(UnitOfMeasurement.Unknown)), + GaugeRecorder(GaugeKey(gaugeEntity.category, unitOfMeasurement.getOrElse(UnitOfMeasurement.Unknown)), factory.createGauge(name, dynamicRange, refreshInterval, valueCollector)) }, _.cleanup) |