diff options
Diffstat (limited to 'kamon-uow/src/main/scala/kamon/logging')
-rw-r--r-- | kamon-uow/src/main/scala/kamon/logging/UowDirectives.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-uow/src/main/scala/kamon/logging/UowDirectives.scala b/kamon-uow/src/main/scala/kamon/logging/UowDirectives.scala index 6d38f3d7..0b54cedc 100644 --- a/kamon-uow/src/main/scala/kamon/logging/UowDirectives.scala +++ b/kamon-uow/src/main/scala/kamon/logging/UowDirectives.scala @@ -13,7 +13,7 @@ trait UowDirectives extends BasicDirectives { val generatedUow = uowHeader.map(_.value).orElse(Some(UowDirectives.newUow)) println("Generated UOW: "+generatedUow) - Tracer.set(Tracer.newTraceContext().copy(userContext = generatedUow)) + Tracer.set(Tracer.context().getOrElse(Tracer.newTraceContext()).copy(userContext = generatedUow)) request |