diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2013-12-04 00:36:26 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2013-12-04 00:36:26 -0300 |
commit | 6150d254657fa2c855b2c1825257a7210bdb2654 (patch) | |
tree | 135e174582911ca797ba6ad01cf20d054259fd0d /kamon-spray/src/main/scala/spray/can | |
parent | 231b5b0fc61438ec96e309436295e86808abdbb5 (diff) | |
download | Kamon-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/scala/spray/can')
-rw-r--r-- | kamon-spray/src/main/scala/spray/can/client/ClientRequestTracing.scala | 3 |
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]( |