aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/instrumentation/ActorSystemInstrumentationSpec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'kamon-core/src/test/scala/kamon/instrumentation/ActorSystemInstrumentationSpec.scala')
-rw-r--r--kamon-core/src/test/scala/kamon/instrumentation/ActorSystemInstrumentationSpec.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/kamon-core/src/test/scala/kamon/instrumentation/ActorSystemInstrumentationSpec.scala b/kamon-core/src/test/scala/kamon/instrumentation/ActorSystemInstrumentationSpec.scala
new file mode 100644
index 00000000..1eab6355
--- /dev/null
+++ b/kamon-core/src/test/scala/kamon/instrumentation/ActorSystemInstrumentationSpec.scala
@@ -0,0 +1,22 @@
+package kamon.instrumentation
+
+import org.scalatest.{Matchers, WordSpec}
+import akka.actor.ActorSystem
+import kamon.Kamon
+
+class ActorSystemInstrumentationSpec extends WordSpec with Matchers {
+
+ // TODO: Selection filters to exclude unwanted actor systems. Read from configuration.
+
+ "the actor system instrumentation" should {
+ "register all actor systems created" in {
+ val as1 = ActorSystem("as1")
+ val as2 = ActorSystem("as2")
+
+
+ Kamon.Metric.actorSystem("as1") should not be (None)
+ Kamon.Metric.actorSystem("as2") should not be (None)
+ Kamon.Metric.actorSystem("unknown") should be (None)
+ }
+ }
+}