diff options
Diffstat (limited to 'kamon-playground/src/main')
-rw-r--r-- | kamon-playground/src/main/resources/application.conf | 8 | ||||
-rw-r--r-- | kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/kamon-playground/src/main/resources/application.conf b/kamon-playground/src/main/resources/application.conf index 86a87439..9782418f 100644 --- a/kamon-playground/src/main/resources/application.conf +++ b/kamon-playground/src/main/resources/application.conf @@ -1,6 +1,6 @@ akka { - loglevel = DEBUG - extensions = ["kamon.newrelic.NewRelic"] + loglevel = INFO + //extensions = ["kamon.newrelic.NewRelic"] actor { debug { @@ -30,6 +30,10 @@ kamon.statsd { } kamon { + trace { + level = simple-trace + + } metrics { tick-interval = 1 second diff --git a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala index 1164b811..eda02f4e 100644 --- a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala +++ b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala @@ -23,7 +23,7 @@ import kamon.Kamon import kamon.metric.Subscriptions.TickMetricSnapshot import kamon.metric._ import kamon.spray.KamonTraceDirectives -import kamon.trace.{ SegmentCategory, TraceRecorder } +import kamon.trace.{ Trace, SegmentCategory, TraceRecorder } import spray.http.{ StatusCodes, Uri } import spray.httpx.RequestBuilding import spray.routing.SimpleRoutingApp @@ -46,6 +46,7 @@ object SimpleRequestProcessor extends App with SimpleRoutingApp with RequestBuil def receive: Actor.Receive = { case any ⇒ sender ! any } }), "com") + Kamon(Trace).subscribe(printer) //val buffer = system.actorOf(TickMetricSnapshotBuffer.props(30 seconds, printer)) //Kamon(Metrics).subscribe(CustomMetric, "*", buffer, permanently = true) |