diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-02-02 22:55:05 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-02-02 22:55:05 -0300 |
commit | f293332a6123b1ab24f83edb5ff56bd0335c20ad (patch) | |
tree | c02fe3eb87cd29649612e6c3bf625fd149383b3d /kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala | |
parent | 01a835c17c9530b16c9dab0a35a95e31df733873 (diff) | |
download | Kamon-f293332a6123b1ab24f83edb5ff56bd0335c20ad.tar.gz Kamon-f293332a6123b1ab24f83edb5ff56bd0335c20ad.tar.bz2 Kamon-f293332a6123b1ab24f83edb5ff56bd0335c20ad.zip |
instrument akka testkit to correctly propagate TraceContexts when replying from a test probe
Diffstat (limited to 'kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala')
-rw-r--r-- | kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala b/kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala index 9b4acdd9..0edf75e0 100644 --- a/kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala +++ b/kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala @@ -33,7 +33,7 @@ import spray.http.HttpHeaders.Host import akka.io.{ Tcp, IO } import spray.can.Http import akka.io.Tcp.Bound -import kamon.metrics.{TraceMetrics, Metrics} +import kamon.metrics.{ TraceMetrics, Metrics } import kamon.metrics.TraceMetrics.TraceMetricSnapshot import kamon.metrics.Subscriptions.TickMetricSnapshot @@ -79,14 +79,13 @@ class ServerRequestInstrumentationSpec extends TestKit(ActorSystem("spec")) with client.expectMsgType[HttpResponse] metricListener.fishForMessage() { - case snapshot @ TickMetricSnapshot(_, _, metrics) => metrics.keys.exists(_.name.contains("open-and-finish")) - case other => false + case snapshot @ TickMetricSnapshot(_, _, metrics) ⇒ metrics.keys.exists(_.name.contains("open-and-finish")) + case other ⇒ false } } } - } trait TestServer { |