Created
August 27, 2015 15:14
-
-
Save sammyrulez/594032a740ad9fd1d109 to your computer and use it in GitHub Desktop.
lot of tracing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package astrm | |
import akka.actor.ActorSystem | |
import kamon.Kamon | |
object GetStarted extends App { | |
Kamon.start() | |
val someHistogram = Kamon.metrics.histogram("some-histogram") | |
val someCounter = Kamon.metrics.counter("some-counter") | |
(1 to 10000).foreach(i => { | |
(1 to 300000).foreach(k => { | |
someHistogram.record(42+ 310000-i -k) | |
someHistogram.record(5000) | |
someCounter.increment() | |
}) | |
println(i) | |
Thread.sleep(i*5,100) | |
}) | |
// This application wont terminate unless you shutdown Kamon. | |
Kamon.shutdown() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment