diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-12-04 03:20:41 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-12-04 03:20:41 +0100 |
commit | 0858ddfc94853e603975712c16f6945c01288f9a (patch) | |
tree | 277f96a67593d6d6a55e9e5c3e5fb7cdca90778a /kamon-playground | |
parent | b0077e7f5571a0055b36ddd25e9440163083eb32 (diff) | |
download | Kamon-0858ddfc94853e603975712c16f6945c01288f9a.tar.gz Kamon-0858ddfc94853e603975712c16f6945c01288f9a.tar.bz2 Kamon-0858ddfc94853e603975712c16f6945c01288f9a.zip |
+ core: cleanup the simple trace implementation
Diffstat (limited to 'kamon-playground')
-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) |