aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/test
diff options
context:
space:
mode:
authorIvan Topolnak <ivantopo@gmail.com>2013-10-10 18:52:09 -0300
committerIvan Topolnak <ivantopo@gmail.com>2013-10-10 18:52:09 -0300
commite148933747e8fde17b6ac324df0dee70b8cb9ebc (patch)
tree6cd084809e8184c74052bcb4201adb3f8e5e4004 /kamon-core/src/main/scala/test
parentdbac9011999384a57c0ecc2c9ab5c49870cdce45 (diff)
downloadKamon-e148933747e8fde17b6ac324df0dee70b8cb9ebc.tar.gz
Kamon-e148933747e8fde17b6ac324df0dee70b8cb9ebc.tar.bz2
Kamon-e148933747e8fde17b6ac324df0dee70b8cb9ebc.zip
complete spray client instrumentation with experimental branch
Diffstat (limited to 'kamon-core/src/main/scala/test')
-rw-r--r--kamon-core/src/main/scala/test/SimpleRequestProcessor.scala14
1 files changed, 12 insertions, 2 deletions
diff --git a/kamon-core/src/main/scala/test/SimpleRequestProcessor.scala b/kamon-core/src/main/scala/test/SimpleRequestProcessor.scala
index 7d4cec52..ef657f24 100644
--- a/kamon-core/src/main/scala/test/SimpleRequestProcessor.scala
+++ b/kamon-core/src/main/scala/test/SimpleRequestProcessor.scala
@@ -24,8 +24,12 @@ object SimpleRequestProcessor extends App with SimpleRoutingApp with RequestBuil
startServer(interface = "localhost", port = 9090) {
get {
path("test"){
- complete {
- pipeline(Get("http://www.despegar.com.ar")).map(r => "Ok")
+ uow {
+ complete {
+ val futures = pipeline(Get("http://10.254.10.57:8000/")).map(r => "Ok") :: pipeline(Get("http://10.254.10.57:8000/")).map(r => "Ok") :: Nil
+
+ Future.sequence(futures).map(l => "Ok")
+ }
}
} ~
path("reply" / Segment) { reqID =>
@@ -45,6 +49,12 @@ object SimpleRequestProcessor extends App with SimpleRoutingApp with RequestBuil
dynamic {
complete(Future { "OK" })
}
+ } ~
+ path("error") {
+ complete {
+ throw new NullPointerException
+ "okk"
+ }
}
}
}