Created
June 15, 2015 22:20
-
-
Save bneil/76bcc1ea3a8a70c97fe2 to your computer and use it in GitHub Desktop.
Kamon has not been started yet.
This file contains 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
//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