diff options
author | Diego <diegolparra@gmail.com> | 2015-03-13 00:22:31 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2015-03-13 00:22:31 -0300 |
commit | 37bf47d4ede655df5bda73882a2c15f98b39e820 (patch) | |
tree | cf697e69d54e0ec0567fa4259b563c131bb1c185 /kamon-akka/src/main/scala | |
parent | 3be5eff111e543e9702e64a34155420dbc1f2e25 (diff) | |
download | Kamon-37bf47d4ede655df5bda73882a2c15f98b39e820.tar.gz Kamon-37bf47d4ede655df5bda73882a2c15f98b39e820.tar.bz2 Kamon-37bf47d4ede655df5bda73882a2c15f98b39e820.zip |
+ log-reporter: include dispatcher metrics and close #163
Diffstat (limited to 'kamon-akka/src/main/scala')
-rw-r--r-- | kamon-akka/src/main/scala/kamon/akka/instrumentation/DispatcherInstrumentation.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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. } |