diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-03-05 23:39:44 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-03-09 23:09:08 +0100 |
commit | 959ce3573253ec4ac5b837d8a9c9e70f1f80bd6b (patch) | |
tree | 27c1fe8f22429fe3820f988ab17caaf8e4a6fa3a /kamon-annotation/src/main | |
parent | 69ea63923e0d3697f8ca4c7eb9cb808821832aa2 (diff) | |
download | Kamon-959ce3573253ec4ac5b837d8a9c9e70f1f80bd6b.tar.gz Kamon-959ce3573253ec4ac5b837d8a9c9e70f1f80bd6b.tar.bz2 Kamon-959ce3573253ec4ac5b837d8a9c9e70f1f80bd6b.zip |
! all: introduced support for metric tags.
Diffstat (limited to 'kamon-annotation/src/main')
-rw-r--r-- | kamon-annotation/src/main/scala/kamon/annotation/instrumentation/BaseAnnotationInstrumentation.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kamon-annotation/src/main/scala/kamon/annotation/instrumentation/BaseAnnotationInstrumentation.scala b/kamon-annotation/src/main/scala/kamon/annotation/instrumentation/BaseAnnotationInstrumentation.scala index 57e8c4d7..2074e237 100644 --- a/kamon-annotation/src/main/scala/kamon/annotation/instrumentation/BaseAnnotationInstrumentation.scala +++ b/kamon-annotation/src/main/scala/kamon/annotation/instrumentation/BaseAnnotationInstrumentation.scala @@ -39,7 +39,7 @@ class BaseAnnotationInstrumentation { val time = method.getAnnotation(classOf[Time]) val name = evalString(time.name()) val tags = evalTags(time.tags()) - val currentHistogram = Kamon.simpleMetrics.histogram(HistogramKey(name, tags)) + val currentHistogram = Kamon.metrics.histogram(name, tags) histograms.set(jps.getId, currentHistogram) currentHistogram } @@ -50,7 +50,7 @@ class BaseAnnotationInstrumentation { val name = evalString(histogram.name()) val tags = evalTags(histogram.tags()) val dynamicRange = DynamicRange(histogram.lowestDiscernibleValue(), histogram.highestTrackableValue(), histogram.precision()) - val currentHistogram = Kamon.simpleMetrics.histogram(HistogramKey(name, tags), dynamicRange) + val currentHistogram = Kamon.metrics.histogram(name, tags, dynamicRange) histograms.set(jps.getId, currentHistogram) currentHistogram } @@ -60,7 +60,7 @@ class BaseAnnotationInstrumentation { val minMaxCount = method.getAnnotation(classOf[MinMaxCount]) val name = evalString(minMaxCount.name()) val tags = evalTags(minMaxCount.tags()) - val minMaxCounter = Kamon.simpleMetrics.minMaxCounter(MinMaxCounterKey(name, tags)) + val minMaxCounter = Kamon.metrics.minMaxCounter(name, tags) minMaxCounters.set(jps.getId, minMaxCounter) minMaxCounter } @@ -70,7 +70,7 @@ class BaseAnnotationInstrumentation { val count = method.getAnnotation(classOf[Count]) val name = evalString(count.name()) val tags = evalTags(count.tags()) - val counter = Kamon.simpleMetrics.counter(CounterKey(name, tags)) + val counter = Kamon.metrics.counter(name, tags) counters.set(jps.getId, counter) counter } |