diff options
Diffstat (limited to 'kamon-spray/src/test')
-rw-r--r-- | kamon-spray/src/test/scala/kamon/spray/ClientRequestInstrumentationSpec.scala | 2 | ||||
-rw-r--r-- | kamon-spray/src/test/scala/kamon/spray/SprayServerMetricsSpec.scala | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kamon-spray/src/test/scala/kamon/spray/ClientRequestInstrumentationSpec.scala b/kamon-spray/src/test/scala/kamon/spray/ClientRequestInstrumentationSpec.scala index a72c4e5e..b66d54c3 100644 --- a/kamon-spray/src/test/scala/kamon/spray/ClientRequestInstrumentationSpec.scala +++ b/kamon-spray/src/test/scala/kamon/spray/ClientRequestInstrumentationSpec.scala @@ -39,7 +39,7 @@ class ClientRequestInstrumentationSpec extends BaseKamonSpec("client-request-ins """ |kamon { | metric.tick-interval = 1 hour - | spray.name-generator = kamon.spray.TestSprayNameGenerator + | spray.name-generator = kamon.spray.TestNameGenerator |} | |akka.loggers = ["akka.event.slf4j.Slf4jLogger"] diff --git a/kamon-spray/src/test/scala/kamon/spray/SprayServerMetricsSpec.scala b/kamon-spray/src/test/scala/kamon/spray/SprayServerMetricsSpec.scala index 58bb2885..69f8d2bd 100644 --- a/kamon-spray/src/test/scala/kamon/spray/SprayServerMetricsSpec.scala +++ b/kamon-spray/src/test/scala/kamon/spray/SprayServerMetricsSpec.scala @@ -39,7 +39,7 @@ class SprayServerMetricsSpec extends BaseKamonSpec("spray-server-metrics-spec") client.expectMsgType[HttpResponse] } - val snapshot = takeSnapshotOf("GET: /record-trace-metrics", "trace") + val snapshot = takeSnapshotOf("UnnamedTrace", "trace") snapshot.histogram("elapsed-time").get.numberOfMeasurements should be(15) } @@ -65,8 +65,8 @@ class SprayServerMetricsSpec extends BaseKamonSpec("spray-server-metrics-spec") } val snapshot = takeSnapshotOf("spray-server", "http-server") - snapshot.counter("GET: /record-http-metrics_200").get.count should be(10) - snapshot.counter("GET: /record-http-metrics_400").get.count should be(5) + snapshot.counter("UnnamedTrace_200").get.count should be(10) + snapshot.counter("UnnamedTrace_400").get.count should be(5) snapshot.counter("200").get.count should be(10) snapshot.counter("400").get.count should be(5) } |