diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-04-17 19:11:41 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-04-17 19:11:41 +0200 |
commit | eb07f2f0b583c759e9cfaba27e3bcddeaf05a4cf (patch) | |
tree | 57784857799de642dcd76be931027cf04cb56f67 /kamon-play/src/main/scala | |
parent | 2731db2910827f0bf22484d0e5603788795b69f9 (diff) | |
download | Kamon-eb07f2f0b583c759e9cfaba27e3bcddeaf05a4cf.tar.gz Kamon-eb07f2f0b583c759e9cfaba27e3bcddeaf05a4cf.tar.bz2 Kamon-eb07f2f0b583c759e9cfaba27e3bcddeaf05a4cf.zip |
= core: add commodity trace context manipulation methods to the Tracer.
Diffstat (limited to 'kamon-play/src/main/scala')
-rw-r--r-- | kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala b/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala index 5214f420..ac73bff0 100644 --- a/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala +++ b/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala @@ -43,7 +43,7 @@ class RequestInstrumentation { requestHeader.headers.toSimpleMap.find(_._1 == playExtension.traceTokenHeaderName).map(_._2) } else None - val newContext = token.map(t ⇒ tracer.newContext(defaultTraceName, t)).getOrElse(tracer.newContext(defaultTraceName)) + val newContext = tracer.newContext(defaultTraceName, token) Tracer.setCurrentContext(newContext) } |