From 8bf93c1f26453ef298d965aaa8b9cb932f8b2a64 Mon Sep 17 00:00:00 2001 From: Diego Date: Tue, 1 Jul 2014 17:18:42 -0300 Subject: = kamon-play-example: fixed typo --- .../app/controllers/KamonPlayExample.scala | 50 ++++++++++------------ 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala b/kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala index 26b0af7b..2b2e9373 100644 --- a/kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala +++ b/kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala @@ -22,34 +22,30 @@ import play.api.mvc.{Action, Controller} import scala.concurrent._ - /** -In order to run the example we need set the -agent parameter to the JVM but Play have some limitations when trying setear 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.1.jar play.core.server.NettyServer - -and finally for test: - -curl -i -H 'X-Trace-Token:kamon-test' -H 'MyTraceLocalStorageKey:extra-header' -X GET "http://localhost:9000/helloKamon" - -we should get: - -HTTP/1.1 200 OK -Content-Type: text/plain; charset=utf-8 -MyTraceLocalStorageKey: extra-header -> Extra Information -X-Trace-Token: kamon-test -> default Trace-Token -Content-Length: 18 - -Say hello to Kamon - **/ **/ + * In order to run the example we need set the -agent parameter 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.1.jar play.core.server.NettyServer + * + * and finally for test: + * + * curl -i -H 'X-Trace-Token:kamon-test' -H 'MyTraceLocalStorageKey:extra-header' -X GET "http://localhost:9000/helloKamon" + * + * we should get: + * HTTP/1.1 200 OK + * Content-Type: text/plain; charset=utf-8 + * MyTraceLocalStorageKey: extra-header -> Extra Information + * X-Trace-Token: kamon-test -> default Trace-Token + * + * Say hello to Kamon + */*/ object KamonPlayExample extends Controller { -- cgit v1.2.3