diff options
author | Ivan Topolnak <ivantopo@gmail.com> | 2013-11-05 18:38:39 -0300 |
---|---|---|
committer | Ivan Topolnak <ivantopo@gmail.com> | 2013-11-05 18:38:39 -0300 |
commit | 26003feac484c971abf7639dc3adb628c5f118c3 (patch) | |
tree | c22effcf90aea23af6ce23beff4735c7de59131a /kamon-core/src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala | |
parent | 84711adba09c64b75369f8b801819a90198238c6 (diff) | |
download | Kamon-26003feac484c971abf7639dc3adb628c5f118c3.tar.gz Kamon-26003feac484c971abf7639dc3adb628c5f118c3.tar.bz2 Kamon-26003feac484c971abf7639dc3adb628c5f118c3.zip |
basic separation of concerns between sub-projects
Diffstat (limited to 'kamon-core/src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala')
-rw-r--r-- | kamon-core/src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/kamon-core/src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala b/kamon-core/src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala deleted file mode 100644 index 89ef61f3..00000000 --- a/kamon-core/src/test/scala/kamon/instrumentation/DispatcherInstrumentationSpec.scala +++ /dev/null @@ -1,34 +0,0 @@ -package kamon.instrumentation - -import org.scalatest.{Matchers, WordSpec} -import akka.actor.{Actor, Props, ActorSystem} -import kamon.metric.MetricDirectory -import kamon.Kamon - -class DispatcherInstrumentationSpec extends WordSpec with Matchers{ - - - "the dispatcher instrumentation" should { - "instrument a dispatcher that belongs to a non-filtered actor system" in new SingleDispatcherActorSystem { - val x = Kamon.Metric.actorSystem("single-dispatcher").get.dispatchers - (1 to 10).foreach(actor ! _) - - val active = x.get("akka.actor.default-dispatcher").get.activeThreadCount.snapshot - println("Active max: "+active.max) - println("Active min: "+active.min) - - } - } - - - trait SingleDispatcherActorSystem { - val actorSystem = ActorSystem("single-dispatcher") - val actor = actorSystem.actorOf(Props(new Actor { - def receive = { - case a => sender ! a; - } - })) - - } -} - |