aboutsummaryrefslogtreecommitdiff
path: root/kamon-examples
diff options
context:
space:
mode:
authorDiego <diegolparra@gmail.com>2014-07-01 17:18:42 -0300
committerDiego <diegolparra@gmail.com>2014-07-01 17:18:42 -0300
commit8bf93c1f26453ef298d965aaa8b9cb932f8b2a64 (patch)
treec2468c1bc77bd6b3f5027d62d36211269be01f50 /kamon-examples
parent42b554f353bf7d94c642d4dd99d1030848f86bc4 (diff)
downloadKamon-8bf93c1f26453ef298d965aaa8b9cb932f8b2a64.tar.gz
Kamon-8bf93c1f26453ef298d965aaa8b9cb932f8b2a64.tar.bz2
Kamon-8bf93c1f26453ef298d965aaa8b9cb932f8b2a64.zip
= kamon-play-example: fixed typo
Diffstat (limited to 'kamon-examples')
-rw-r--r--kamon-examples/kamon-play-example/app/controllers/KamonPlayExample.scala50
1 files 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 {