diff options
author | Ivan Topolnak <itopolnak@despegar.com> | 2014-02-04 18:16:07 -0300 |
---|---|---|
committer | Ivan Topolnak <itopolnak@despegar.com> | 2014-02-04 18:16:07 -0300 |
commit | 57e433c07a271b4e5e4159500cdc828cd7bb6a83 (patch) | |
tree | 6b2928dcf3c1dc68c4131aa864a0a0f53ccf2160 /kamon-spray/src/test/scala/kamon/spray | |
parent | 7307e1cc97e0363d1fb4cc116fc69a5272ca3730 (diff) | |
download | Kamon-57e433c07a271b4e5e4159500cdc828cd7bb6a83.tar.gz Kamon-57e433c07a271b4e5e4159500cdc828cd7bb6a83.tar.bz2 Kamon-57e433c07a271b4e5e4159500cdc828cd7bb6a83.zip |
partial rewrite of kamon-newrelic
Diffstat (limited to 'kamon-spray/src/test/scala/kamon/spray')
-rw-r--r-- | kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala b/kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala index 8fd84bfb..d3d18a1b 100644 --- a/kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala +++ b/kamon-spray/src/test/scala/kamon/spray/ServerRequestInstrumentationSpec.scala @@ -16,28 +16,18 @@ package kamon.spray import _root_.spray.httpx.RequestBuilding -import _root_.spray.routing.SimpleRoutingApp -import akka.testkit.{ TestKitBase, TestProbe, TestKit } -import akka.actor.{ ActorRef, ActorSystem } +import akka.testkit.{ TestProbe, TestKit } +import akka.actor.ActorSystem import org.scalatest.{ Matchers, WordSpecLike } -import scala.concurrent.Await -import scala.concurrent.duration._ -import _root_.spray.client.pipelining._ -import akka.util.Timeout -import kamon.trace.{ UowTrace } import kamon.Kamon import org.scalatest.concurrent.{ PatienceConfiguration, ScalaFutures } import spray.http.HttpHeaders.RawHeader import spray.http.{ HttpResponse, HttpRequest } -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.TraceMetricSnapshot import kamon.metrics.Subscriptions.TickMetricSnapshot -class ServerRequestInstrumentationSpec extends TestKit(ActorSystem("spec")) with WordSpecLike with Matchers with RequestBuilding with ScalaFutures with PatienceConfiguration with TestServer { +class ServerRequestInstrumentationSpec extends TestKit(ActorSystem("spec")) with WordSpecLike with Matchers with RequestBuilding + with ScalaFutures with PatienceConfiguration with TestServer { "the spray server request tracing instrumentation" should { "reply back with the same trace token header provided in the request" in { |