diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-11-10 04:22:05 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-11-10 04:53:56 +0100 |
commit | 5b9bbb196734c47e67d69d48e378e196b205fd57 (patch) | |
tree | d51796eb32c61c84e23da83780af1ef0854bbc1e /kamon-playground/src/main/scala/test | |
parent | 447605e612d5bbea9765ede288ba19b1a69af48c (diff) | |
download | Kamon-5b9bbb196734c47e67d69d48e378e196b205fd57.tar.gz Kamon-5b9bbb196734c47e67d69d48e378e196b205fd57.tar.bz2 Kamon-5b9bbb196734c47e67d69d48e378e196b205fd57.zip |
+ newrelic: report additional and scoped external service metrics, improves #63.
Diffstat (limited to 'kamon-playground/src/main/scala/test')
-rw-r--r-- | kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala index da6a3cbe..7d7494eb 100644 --- a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala +++ b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala @@ -83,8 +83,11 @@ object SimpleRequestProcessor extends App with SimpleRoutingApp with RequestBuil } } ~ path("site") { - complete { - pipeline(Get("http://localhost:9090/site-redirect")) + traceName("FinalGetSite-3") { + complete { + for (f1 <- pipeline(Get("http://127.0.0.1:9090/ok")); + f2 <- pipeline(Get("http://www.google.com/search?q=mkyong"))) yield "Ok Double Future" + } } } ~ path("site-redirect") { @@ -99,7 +102,7 @@ object SimpleRequestProcessor extends App with SimpleRoutingApp with RequestBuil } } ~ path("ok") { - traceName("OK") { + traceName("RespondWithOK-3") { complete { "ok" } |