aboutsummaryrefslogtreecommitdiff
path: root/kamon-playground
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2015-01-30 03:25:54 +0100
committerIvan Topolnjak <ivantopo@gmail.com>2015-01-30 03:25:54 +0100
commitaa1980de105ce128ba75099815f97de3d0d4b552 (patch)
tree4ca0acdd72f8316ef778f5702c8ad40af613884f /kamon-playground
parented950a320c7b3edba36d07288a69fb0049b33063 (diff)
downloadKamon-aa1980de105ce128ba75099815f97de3d0d4b552.tar.gz
Kamon-aa1980de105ce128ba75099815f97de3d0d4b552.tar.bz2
Kamon-aa1980de105ce128ba75099815f97de3d0d4b552.zip
+ all: use ModuleSupervisor init all auto-start modules.
The new ModuleSupervisor implementation will make use of special configuration keys under the `kamon.modules` section to detect all the available modules in the classpath and do two things with that info: 1. Log the AspectJ Weaver missing error if any of the available modules requires AspectJ. 2. Start all available modules that are marked with the auto-start setting.
Diffstat (limited to 'kamon-playground')
-rw-r--r--kamon-playground/src/main/resources/application.conf31
-rw-r--r--kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala1
2 files changed, 12 insertions, 20 deletions
diff --git a/kamon-playground/src/main/resources/application.conf b/kamon-playground/src/main/resources/application.conf
index 11f06334..74e710bc 100644
--- a/kamon-playground/src/main/resources/application.conf
+++ b/kamon-playground/src/main/resources/application.conf
@@ -1,6 +1,5 @@
akka {
- loglevel = INFO
- extensions = ["kamon.statsd.StatsD", "kamon.system.SystemMetrics"]
+ loglevel = DEBUG
actor {
debug {
@@ -16,13 +15,6 @@ spray.can {
}
kamon {
- newrelic {
- app-name = "SimpleRequestProcessor"
- license-key = e7d350b14228f3d28f35bc3140df2c3e565ea5d5
- }
-}
-
-kamon {
trace {
level = simple-trace
}
@@ -34,16 +26,15 @@ kamon {
}
}
-}
-
+ newrelic {
+ app-name = "SimpleRequestProcessor"
+ license-key = e7d350b14228f3d28f35bc3140df2c3e565ea5d5
+ }
-kamon {
- metrics {
- actors {
- tracked = [
- "user/simple-service-actor",
- "other"
- ]
- }
+ modules {
+ kamon-newrelic.auto-start = no
+ kamon-datadog.auto-start = no
+ kamon-log-reporter.auto-start = no
+ kamon-system-metrics.auto-start = no
}
-} \ No newline at end of file
+}
diff --git a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala
index 94c91a8a..67ab3c97 100644
--- a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala
+++ b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala
@@ -38,6 +38,7 @@ object SimpleRequestProcessor extends App with SimpleRoutingApp with RequestBuil
import scala.concurrent.duration._
implicit val system = ActorSystem("test")
+ val kamon = Kamon(system)
import test.SimpleRequestProcessor.system.dispatcher
val printer = system.actorOf(Props[PrintWhatever])