diff options
author | Diego <diegolparra@gmail.com> | 2014-02-28 16:32:13 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-02-28 16:32:13 -0300 |
commit | da2ba240b2202639cae75928232f3f39228dbc3d (patch) | |
tree | 52c7b4912157cfd3531f3e3d9a4da9705530e195 /kamon-core/src | |
parent | 042b5d3c57634598eeca1359a90e7546b0e7c3c5 (diff) | |
download | Kamon-da2ba240b2202639cae75928232f3f39228dbc3d.tar.gz Kamon-da2ba240b2202639cae75928232f3f39228dbc3d.tar.bz2 Kamon-da2ba240b2202639cae75928232f3f39228dbc3d.zip |
WIP: added tests to play requests instrumentation
Diffstat (limited to 'kamon-core/src')
-rw-r--r-- | kamon-core/src/main/scala/kamon/Kamon.scala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/Kamon.scala b/kamon-core/src/main/scala/kamon/Kamon.scala index b72e8fea..eb0b56ef 100644 --- a/kamon-core/src/main/scala/kamon/Kamon.scala +++ b/kamon-core/src/main/scala/kamon/Kamon.scala @@ -16,9 +16,14 @@ package kamon import akka.actor._ +import akka.event.Logging.Info object Kamon { - trait Extension extends akka.actor.Extension + trait Extension extends akka.actor.Extension { + def publishInfoMessage(system: ActorSystem, msg: String): Unit = { + system.eventStream.publish(Info("", classOf[Extension], msg)) + } + } def apply[T <: Extension](key: ExtensionId[T])(implicit system: ActorSystem): T = key(system) } |