diff options
Diffstat (limited to 'kamon-play/src/test')
-rw-r--r-- | kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala b/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala index ee23fd81..f6b73911 100644 --- a/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala +++ b/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala @@ -24,6 +24,7 @@ import play.api.mvc.Results.Ok import scala.Some import scala.concurrent.Future import kamon.play.action.TraceName +import kamon.trace.TraceRecorder class RequestInstrumentationSpec extends PlaySpec with OneServerPerSuite { @@ -89,6 +90,7 @@ class RequestInstrumentationSpec extends PlaySpec with OneServerPerSuite { "respond to the Async Action with X-Trace-Token and the renamed trace" in { val Some(result) = route(FakeRequest(GET, "/async-renamed").withHeaders(traceTokenHeader)) + TraceRecorder.currentContext.map(_.name) must be(Some("renamed-trace")) header(traceTokenHeaderName, result) must be(expectedToken) } } |