diff options
author | Diego <diegolparra@gmail.com> | 2014-05-09 16:27:52 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-05-09 16:27:52 -0300 |
commit | e7d18421c354d4dbc3c5b77073fb0b195eb45cfe (patch) | |
tree | f6e6f3e569bbd2fcab79eaacd91312ce9050a94c /kamon-play/src/test/scala/kamon | |
parent | b991d230725b763428f079a6379bc37334022c5e (diff) | |
download | Kamon-e7d18421c354d4dbc3c5b77073fb0b195eb45cfe.tar.gz Kamon-e7d18421c354d4dbc3c5b77073fb0b195eb45cfe.tar.bz2 Kamon-e7d18421c354d4dbc3c5b77073fb0b195eb45cfe.zip |
+ play: new rename trace test
Diffstat (limited to 'kamon-play/src/test/scala/kamon')
-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) } } |