I'm adding kamon
to my standalone akka application and i'm getting this error:
com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'requires-aspectj'
error at Kamon.start()
.
This is the relative content of application.conf.
{
...
modules {
kamon-akka {
auto-start = no
}
kamon-statsd {
auto-start = no
}
kamon-system-metric {
auto-start = no
requires-aspectj = no
extension-id = "kamon.system.SystemMetrics"
}
}
}
application.conf: 36: requires-aspectj has type STRING rather than OBJECT
However, when I include the asked property
{
modules {
requires-aspectj = no
...
}
}
I get this error: application.conf: 36: requires-aspectj has type STRING rather than OBJECT
If i remove Kamon.start()
my application starts as usual
This is an extract of the my build.sbt:
lazy val root = (project in file("."))
.settings(name := "kamon-akka")
.settings(Seq(scalaVersion := "2.11.8"))
.settings(libraryDependencies ++= Seq(
akka.Http,
akka.slf4jApi,
akka.akkaSlf4j,
kamon.Core,
kamon.Akka,
kamon.LogReporter,
kamon.SystemMetrics,
aspectj.aspectjtools,
aspectj.aspectjweaver,
aspectj.aspectjrt
))
.settings(aspectjSettings: _*)
PS:
- kamon = 0.6.7
- aspectj = 1.8.9
- sbt 0.13.13
- scala 2.12.3
- I'm also using this plugin
addSbtPlugin("com.typesafe.sbt" % "sbt-aspectj" % "0.9.4")
any ideas?