From b02f2c07bad4abdb128f5249b4e1a9eabfde4ce9 Mon Sep 17 00:00:00 2001 From: Diego Date: Fri, 30 Jan 2015 01:17:07 -0300 Subject: = play: use our own dispatcher instead of Akka's default dispatcher and reduce verbosity of log in test --- kamon-play/src/test/resources/logback.xml | 12 ++++++++++++ kamon-play/src/test/resources/logger.xml | 16 ---------------- .../test/scala/kamon/play/WSInstrumentationSpec.scala | 4 ++-- 3 files changed, 14 insertions(+), 18 deletions(-) create mode 100644 kamon-play/src/test/resources/logback.xml delete mode 100644 kamon-play/src/test/resources/logger.xml (limited to 'kamon-play/src/test') diff --git a/kamon-play/src/test/resources/logback.xml b/kamon-play/src/test/resources/logback.xml new file mode 100644 index 00000000..c336bbfe --- /dev/null +++ b/kamon-play/src/test/resources/logback.xml @@ -0,0 +1,12 @@ + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + \ No newline at end of file diff --git a/kamon-play/src/test/resources/logger.xml b/kamon-play/src/test/resources/logger.xml deleted file mode 100644 index 84126e9d..00000000 --- a/kamon-play/src/test/resources/logger.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - %date{HH:mm:ss.SSS} %-5level [%traceToken][%X{akkaSource}] [%thread] %logger{55} - %msg%n - - - - - - - - - - - diff --git a/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala b/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala index 3dec2ebf..795453d0 100644 --- a/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala +++ b/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala @@ -47,8 +47,8 @@ class WSInstrumentationSpec extends WordSpecLike with Matchers with OneServerPer val snapshot = takeSnapshotOf("GET: /inside") snapshot.histogram("elapsed-time").get.numberOfMeasurements should be(1) - // snapshot.segments.size should be(1) - // snapshot.segment("http://localhost:19001/async", SegmentCategory.HttpClient, Play.SegmentLibraryName).numberOfMeasurements should be(1) + snapshot.segments.size should be(1) + snapshot.segment("http://localhost:19001/async", SegmentCategory.HttpClient, Play.SegmentLibraryName).numberOfMeasurements should be(1) } "propagate the TraceContext outside an Action and complete the WS request" in { -- cgit v1.2.3