diff options
Diffstat (limited to 'kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala')
-rw-r--r-- | kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala b/kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala index 29eb96ed..3f368354 100644 --- a/kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala +++ b/kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala @@ -27,18 +27,11 @@ import play.libs.Akka import scala.concurrent._ /** - * In order to run the example we need set the -javaagent option to the JVM, but Play have some limitations when trying to set an - * java agent in Play dev mode (ie, play run) -> https://github.com/playframework/playframework/issues/1372, so we have others options: - * - * The first option is set -javaagent: path-to-aspectj-weaver in your IDE or - * * Run the following commands from console: * - * 1- play stage - * 2- cd target/universal/stage - * 3- java -cp ".:lib/*" -javaagent:lib/org.aspectj.aspectjweaver-1.8.6.jar play.core.server.NettyServer + * aspectj-runner:run * - * and finally for test: + * and finally testing: * * curl -i -H 'X-Trace-Token:kamon-test' -H 'MyTraceLocalStorageKey:extra-header' -X GET "http://localhost:9000/helloKamon" * @@ -49,9 +42,7 @@ import scala.concurrent._ * X-Trace-Token: kamon-test -> default Trace-Token * * Say hello to Kamon - */*/ - - + **/ object KamonPlayExample extends Controller { val logger = Logger(this.getClass) |