I wanted to try out Kamon but have small issue.
In my main class I've added the starting of Kamon
object Main extends App with AppConfig with BaseService {
Kamon.start()
....
And in my build.sbt I've added your plugin
addSbtPlugin("io.kamon" % "aspectj-runner" % "0.1.2")
but it's saying kamon is not started and the api is not working. If I start it by just running manually the main class api is working just fine.
Any ideas?
MacBook-Pro:apt-billing kuzelac$ sbt aspectj-runner:run
[info] Loading project definition from /Users/kuzelac/Workspace/apt-billing/project
[info] Set current project to crudapi (in build file:/Users/kuzelac/Workspace/apt-billing/)
[info] Running hr.com.blanka.apartments.Main
[DEBUG] [01/05/2016 06:26:53.512] [run-main-0] [EventStream(akka://kamon)] logger log1-Logging$DefaultLogger started
[DEBUG] [01/05/2016 06:26:53.517] [run-main-0] [EventStream(akka://kamon)] Default Loggers started
[DEBUG] [01/05/2016 06:26:53.650] [run-main-0] [ModuleLoader(akka://kamon)] Auto starting the [kamon-system-metrics] module.
[INFO] [01/05/2016 06:26:53.660] [run-main-0] [SystemMetricsExtension(akka://kamon)] Starting the Kamon(SystemMetrics) extension
Jan 05, 2016 6:26:53 AM kamon.sigar.SigarProvisioner provision
INFO: Sigar library provisioned: /Users/kuzelac/Workspace/apt-billing/native/libsigar-universal64-macosx.dylib
[DEBUG] [01/05/2016 06:26:53.860] [run-main-0] [ModuleLoader(akka://kamon)] Auto starting the [kamon-akka] module.
[DEBUG] [01/05/2016 06:26:53.874] [run-main-0] [ModuleLoader(akka://kamon)] Auto starting the [kamon-annotation] module.
[INFO] [01/05/2016 06:26:53.879] [run-main-0] [AnnotationExtension(akka://kamon)] Starting the Kamon(Annotation) extension
[DEBUG] [01/05/2016 06:26:53.883] [run-main-0] [ModuleLoader(akka://kamon)] Auto starting the [kamon-statsd] module.
[INFO] [01/05/2016 06:26:53.896] [run-main-0] [StatsDExtension(akka://kamon)] Starting the Kamon(StatsD) extension
[DEBUG] [01/05/2016 06:26:54.009] [run-main-0] [EventStream(akka://booking)] logger log1-Logging$DefaultLogger started
[DEBUG] [01/05/2016 06:26:54.009] [run-main-0] [EventStream(akka://booking)] Default Loggers started
[DEBUG] [01/05/2016 06:26:54.448] [run-main-0] [AkkaSSLConfig(akka://booking)] Initializing AkkaSSLConfig extension...
[DEBUG] [01/05/2016 06:26:54.466] [run-main-0] [AkkaSSLConfig(akka://booking)] hostnameVerifier: com.typesafe.sslconfig.ssl.DefaultHostnameVerifier@6b584ef5
[ERROR] [01/05/2016 06:26:57.014] [booking-akka.actor.default-dispatcher-3] [akka://booking/system/IO-TCP/selectors] configuration problem while creating [akka://booking/system/IO-TCP/selectors/$a/0] with dispatcher [akka.actor.default-dispatcher] and mailbox [akka.actor.default-mailbox]
akka.ConfigurationException: configuration problem while creating [akka://booking/system/IO-TCP/selectors/$a/0] with dispatcher [akka.actor.default-dispatcher] and mailbox [akka.actor.default-mailbox]
at akka.actor.LocalActorRefProvider.actorOf(ActorRefProvider.scala:766)
at akka.actor.dungeon.Children$class.makeChild(Children.scala:220)
at akka.actor.dungeon.Children$class.actorOf(Children.scala:38)
at akka.actor.ActorCell.actorOf(ActorCell.scala:374)
at akka.io.SelectionHandler.spawnChildWithCapacityProtection(SelectionHandler.scala:279)
at akka.io.SelectionHandler$$anonfun$receive$1.applyOrElse(SelectionHandler.scala:238)
at akka.actor.Actor$class.aroundReceive(Actor.scala:480)
at akka.io.SelectionHandler.aroundReceive(SelectionHandler.scala:225)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke_aroundBody0(ActorCell.scala:495)
at akka.actor.ActorCell$AjcClosure1.run(ActorCell.scala:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at akka.kamon.instrumentation.ActorCellInstrumentation$$anonfun$aroundBehaviourInvoke$1.apply(ActorCellInstrumentation.scala:63)
at kamon.trace.Tracer$.withContext(TracerModule.scala:53)
at akka.kamon.instrumentation.ActorCellInstrumentation.aroundBehaviourInvoke(ActorCellInstrumentation.scala:62)
at akka.actor.ActorCell.invoke(ActorCell.scala:488)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.lang.RuntimeException: Kamon has not been started yet. You must either explicitly call Kamon.start(...) or enable automatic startup by adding -Dkamon.auto-start=true to your JVM options.
at scala.sys.package$.error(package.scala:27)
at kamon.Kamon$.ifStarted(Kamon.scala:95)
at kamon.Kamon$.metrics(Kamon.scala:78)
at akka.kamon.instrumentation.LookupDataAware$LookupData$.apply$default$3(DispatcherInstrumentation.scala:184)
at akka.kamon.instrumentation.DispatcherInstrumentation.aroundDispatchersLookup(DispatcherInstrumentation.scala:83)
at akka.dispatch.Dispatchers.lookup(Dispatchers.scala:81)
at akka.actor.LocalActorRefProvider.actorOf(ActorRefProvider.scala:760)
... 22 more
[DEBUG] [01/05/2016 06:26:57.033] [kamon-akka.actor.default-dispatcher-5] [EventStream] shutting down: StandardOutLogger started
--
You received this message because you are subscribed to the Google Groups "kamon-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kamon-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "kamon-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kamon-user/8xVfOPBmzQc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kamon-user+...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "kamon-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kamon-user/8xVfOPBmzQc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kamon-user+...@googlegroups.com.