From 37bf47d4ede655df5bda73882a2c15f98b39e820 Mon Sep 17 00:00:00 2001 From: Diego Date: Fri, 13 Mar 2015 00:22:31 -0300 Subject: + log-reporter: include dispatcher metrics and close #163 --- .../scala/kamon/akka/instrumentation/DispatcherInstrumentation.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kamon-akka/src/main/scala') diff --git a/kamon-akka/src/main/scala/kamon/akka/instrumentation/DispatcherInstrumentation.scala b/kamon-akka/src/main/scala/kamon/akka/instrumentation/DispatcherInstrumentation.scala index eb6b5293..4567d442 100644 --- a/kamon-akka/src/main/scala/kamon/akka/instrumentation/DispatcherInstrumentation.scala +++ b/kamon-akka/src/main/scala/kamon/akka/instrumentation/DispatcherInstrumentation.scala @@ -62,13 +62,13 @@ class DispatcherInstrumentation { val dispatcherEntity = Entity(dispatcherName, AkkaDispatcherMetrics.Category) if (Kamon.metrics.shouldTrack(dispatcherEntity)) - Kamon.metrics.entity(ForkJoinPoolDispatcherMetrics.factory(fjp), dispatcherName) + Kamon.metrics.entity(ForkJoinPoolDispatcherMetrics.factory(fjp), dispatcherName, Map("dispatcher-type" -> "fork-join-pool")) case tpe: ThreadPoolExecutor ⇒ val dispatcherEntity = Entity(dispatcherName, AkkaDispatcherMetrics.Category) if (Kamon.metrics.shouldTrack(dispatcherEntity)) - Kamon.metrics.entity(ThreadPoolExecutorDispatcherMetrics.factory(tpe), dispatcherName) + Kamon.metrics.entity(ThreadPoolExecutorDispatcherMetrics.factory(tpe), dispatcherName, Map("dispatcher-type" -> "thread-pool-executor")) case others ⇒ // Currently not interested in other kinds of dispatchers. } -- cgit v1.2.3