I start out by creating a basic scala-play app via;
activator new test-app
I add the AspectJ plugin to plugins.sbt;
addSbtPlugin("com.typesafe.sbt" % "sbt-aspectj" % "0.10.0")
I then add the following to build.sbt;
val kamonVersion = "0.3.4"
libraryDependencies ++= Seq(
"io.kamon" %% "kamon-core" % kamonVersion,
"io.kamon" %% "kamon-statsd" % kamonVersion,
"io.kamon" %% "kamon-log-reporter" % kamonVersion,
"io.kamon" %% "kamon-system-metrics" % kamonVersion,
"org.aspectj" % "aspectjweaver" % "1.8.1"
)
aspectjSettings
javaOptions <++= AspectjKeys.weaverOptions in Aspectj
fork in run := true
In my app, I just do a really dumb val system = ActorSystem("tst") to initialize everything and send something to statsd.
I then fire it up via activator run or sbt run, and as soon as that's hit, I get the error;
It seems like your application wasn't started with the -javaagent:/path-to-aspectj-weaver.jar option. Without that Kamon might
not work properly, if you need help on setting up the weaver go to http://kamon.io/introduction/get-started/ for more info. If
you are sure that you don't need the weaver (e.g. you are only using KamonStandalone) then you can disable this error message
by changing the kamon.metrics.disable-aspectj-weaver-missing-error setting in your configuration file.
What am I missing here? I seem to have followed all the docs, but I just can't get this to work.. The test code can be found here; https://github.com/japhar81/KamonAkkaPlayTest
Thanks for the help!
Thanks! That started and sent stats as expected! Just wondering, does this imply there's no way to get it to work with the standard play run/test commands? If so, what are the implications when deploying to something like tomcat?
I was also having some issues with kamon working on a Play app. I read through the comments on this - [1] https://github.com/kamon-io/Kamon/blob/master/kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala#L31
So does it mean, regular "play run" will not work with kamon?
Thanks
Joji
--
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/X7Tc6v87Dqw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kamon-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If I dont specify the -J-javaagent:aspectjweaver-1.7.4.jar, then it complains that the aspectjweaver is missing
On Saturday, October 4, 2014 6:19:15 PM UTC-4, japh...@gmail.com wrote: