Skip to content

Instantly share code, notes, and snippets.

@bneil
Created June 15, 2015 22:20
Show Gist options
  • Save bneil/76bcc1ea3a8a70c97fe2 to your computer and use it in GitHub Desktop.
Save bneil/76bcc1ea3a8a70c97fe2 to your computer and use it in GitHub Desktop.
Kamon has not been started yet.
//BAD
object Boot {
implicit val system = ActorSystem("test")
def main(args: Array[String]): Unit = {
Kamon.start()
class ApplicationServer(val actorSystem: ActorSystem) extends Stuff
new ApplicationServer(system)
system.shutdown()
Kamon.shutdown()
}
}
//GOOD
object Boot {
def main(args: Array[String]): Unit = {
Kamon.start()
implicit val system = ActorSystem("test")
class ApplicationServer(val actorSystem: ActorSystem) extends Stuff
new ApplicationServer(system)
system.shutdown()
Kamon.shutdown()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment