Skip to content

Instantly share code, notes, and snippets.

@sammyrulez
Created August 27, 2015 15:14
Show Gist options
  • Save sammyrulez/594032a740ad9fd1d109 to your computer and use it in GitHub Desktop.
Save sammyrulez/594032a740ad9fd1d109 to your computer and use it in GitHub Desktop.
lot of tracing
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