diff options
Diffstat (limited to 'kamon-spray/src/main/scala')
-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]( |