diff options
author | Ivan Topolnak <ivantopo@gmail.com> | 2013-07-10 18:13:49 -0300 |
---|---|---|
committer | Ivan Topolnak <ivantopo@gmail.com> | 2013-07-10 18:13:49 -0300 |
commit | e8dd6c83986f1ecd2d717c39bffe900b23b68854 (patch) | |
tree | 43e0feaa42225a3770922a9366e126590225719a /src/test/scala | |
parent | d1e22b3f446c89413c67421f19ab5215ebdfcd43 (diff) | |
download | Kamon-e8dd6c83986f1ecd2d717c39bffe900b23b68854.tar.gz Kamon-e8dd6c83986f1ecd2d717c39bffe900b23b68854.tar.bz2 Kamon-e8dd6c83986f1ecd2d717c39bffe900b23b68854.zip |
complete disaster, wip
Diffstat (limited to 'src/test/scala')
-rw-r--r-- | src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala b/src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala new file mode 100644 index 00000000..517a4ce0 --- /dev/null +++ b/src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala @@ -0,0 +1,27 @@ +package kamon.instrumentation + +import org.scalatest.{Matchers, WordSpec} +import akka.actor.ActorSystem +import kamon.metric.MetricDirectory + +class DispatcherInstrumentationSpec extends WordSpec with Matchers{ + import MetricDirectory.dispatcherStats + + + "the dispatcher instrumentation" should { + "instrument a dispatcher that belongs to a non-filtered actor system" in { + val defaultDispatcherStats = dispatcherStats("single-dispatcher", "akka.actor.default-dispatcher") + + defaultDispatcherStats should not be None + + //KamonMetrics.watch[Actor] named "ivan" + + } + } + + + trait SingleDispatcherActorSystem { + val actorSystem = ActorSystem("single-dispatcher") + } +} + |