I'm trying to setup my play 2.4 app with kamon to obtain tracing of play requests and actor messages.
My configuration is:
in plugins.sbt:
...
addSbtPlugin("io.kamon" % "aspectj-play-runner" % "0.1.3")
...
in build.sb:
...
scalaVersion := "2.11.7"
...
val kamonVersion = "0.5.2"
libraryDependencies ++= Seq(
"io.kamon" %% "kamon-core" % kamonVersion,
"io.kamon" %% "kamon-play-24" % kamonVersion,
"io.kamon" %% "kamon-akka" % kamonVersion,
"io.kamon" %% "kamon-log-reporter" % kamonVersion
)
...
in application.conf:
...
kamon.metric.filters {
akka-actor {
includes = ["application/user/**" ]
excludes = ["kamon/**" ]
}
}
When I do the aspects-runner:run command in sbt the system give me back the following stack trace:
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.
If I add -Dkamon.auto-start=true to the previous command the system responds:
com.typesafe.config.ConfigException$IO: application.conf: java.io.IOException: resource not found on classpath: application.con
If I remove kamon-akka from build.sbt the system works fine but I don't see any actor tracing.
Can you give me some hints on how to resolve the problem?
Thanks a lot
Andrea
--
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.