aboutsummaryrefslogtreecommitdiff
path: root/kamon-spray/src/main
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2013-12-04 00:36:26 -0300
committerIvan Topolnjak <ivantopo@gmail.com>2013-12-04 00:36:26 -0300
commit6150d254657fa2c855b2c1825257a7210bdb2654 (patch)
tree135e174582911ca797ba6ad01cf20d054259fd0d /kamon-spray/src/main
parent231b5b0fc61438ec96e309436295e86808abdbb5 (diff)
downloadKamon-6150d254657fa2c855b2c1825257a7210bdb2654.tar.gz
Kamon-6150d254657fa2c855b2c1825257a7210bdb2654.tar.bz2
Kamon-6150d254657fa2c855b2c1825257a7210bdb2654.zip
move server tests to a higher level of abstraction
Diffstat (limited to 'kamon-spray/src/main')
-rw-r--r--kamon-spray/src/main/scala/spray/can/client/ClientRequestTracing.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/kamon-spray/src/main/scala/spray/can/client/ClientRequestTracing.scala b/kamon-spray/src/main/scala/spray/can/client/ClientRequestTracing.scala
index ab6f1f9c..b081bf00 100644
--- a/kamon-spray/src/main/scala/spray/can/client/ClientRequestTracing.scala
+++ b/kamon-spray/src/main/scala/spray/can/client/ClientRequestTracing.scala
@@ -39,6 +39,9 @@ class ClientRequestTracing {
@After("requestContextCreation(ctx, request)")
def afterRequestContextCreation(ctx: ContextAndSegmentCompletionAware, request: HttpRequest): Unit = {
+ // The RequestContext will be copied when a request needs to be retried but we are only interested in creating the
+ // completion handle the first time we create one.
+
// The read to ctx.completionHandle should take care of initializing the aspect timely.
if(ctx.completionHandle.isEmpty) {
val requestAttributes = Map[String, String](