diff options
author | Diego <diegolparra@gmail.com> | 2015-08-16 11:33:12 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2015-08-16 11:33:12 -0300 |
commit | c223b5a334037c5ff3d5db026e6178a92706cdb4 (patch) | |
tree | 6da99e470bb572413d927c1833aa0f9086114c90 /kamon-play-2.3.x/src/test/scala/kamon/play/RequestInstrumentationSpec.scala | |
parent | 863fe5d26cb81f92dd009ff87e7944462dadafd8 (diff) | |
download | Kamon-c223b5a334037c5ff3d5db026e6178a92706cdb4.tar.gz Kamon-c223b5a334037c5ff3d5db026e6178a92706cdb4.tar.bz2 Kamon-c223b5a334037c5ff3d5db026e6178a92706cdb4.zip |
! play: remove diagnostic context data
Diffstat (limited to 'kamon-play-2.3.x/src/test/scala/kamon/play/RequestInstrumentationSpec.scala')
-rw-r--r-- | kamon-play-2.3.x/src/test/scala/kamon/play/RequestInstrumentationSpec.scala | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/kamon-play-2.3.x/src/test/scala/kamon/play/RequestInstrumentationSpec.scala b/kamon-play-2.3.x/src/test/scala/kamon/play/RequestInstrumentationSpec.scala index 2796cfa5..7efb05d9 100644 --- a/kamon-play-2.3.x/src/test/scala/kamon/play/RequestInstrumentationSpec.scala +++ b/kamon-play-2.3.x/src/test/scala/kamon/play/RequestInstrumentationSpec.scala @@ -18,7 +18,6 @@ package kamon.play import kamon.Kamon import kamon.metric.instrument.CollectionContext import kamon.play.action.TraceName -import kamon.trace.TraceLocal.HttpContextKey import kamon.trace.{ Tracer, TraceLocal } import org.scalatestplus.play._ import play.api.DefaultGlobal @@ -40,7 +39,7 @@ class RequestInstrumentationSpec extends PlaySpec with OneServerPerSuite { Kamon.start() - override lazy val port: Port = 19002 + override lazy val port: Port = 19001 val executor = scala.concurrent.ExecutionContext.Implicits.global implicit override lazy val app = FakeApplication(withGlobal = Some(MockGlobalTest), withRoutes = { @@ -142,16 +141,6 @@ class RequestInstrumentationSpec extends PlaySpec with OneServerPerSuite { Kamon.metrics.find("show.some.id.get", "trace") must not be empty } - "include HttpContext information for help to diagnose possible errors" in { - Await.result(WS.url(s"http://localhost:$port/getRouted").get(), 10 seconds) - route(FakeRequest(GET, "/default").withHeaders("User-Agent" -> "Fake-Agent")) - - val httpCtx = TraceLocal.retrieve(HttpContextKey).get - httpCtx.agent must be("Fake-Agent") - httpCtx.uri must be("/default") - httpCtx.xforwarded must be("unknown") - } - "record http server metrics for all processed requests" in { val collectionContext = CollectionContext(100) Kamon.metrics.find("play-server", "http-server").get.collect(collectionContext) |