aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego <diegolparra@gmail.com>2014-04-23 22:23:17 -0300
committerDiego <diegolparra@gmail.com>2014-04-23 22:23:17 -0300
commite53f7943c7eb1221e660024f292c296797ab1525 (patch)
tree59a7921619488b9b96c99a269eb7094b98ee8bcd
parentd17daf051f2283701be23cb7f9f19a824af10628 (diff)
downloadKamon-e53f7943c7eb1221e660024f292c296797ab1525.tar.gz
Kamon-e53f7943c7eb1221e660024f292c296797ab1525.tar.bz2
Kamon-e53f7943c7eb1221e660024f292c296797ab1525.zip
+ play: fix WSIntrumentation
-rw-r--r--kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala2
-rw-r--r--kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala4
2 files changed, 3 insertions, 3 deletions
diff --git a/kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala b/kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala
index 8595c348..421f7be2 100644
--- a/kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala
+++ b/kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala
@@ -29,7 +29,7 @@ import scala.concurrent.ExecutionContext.Implicits.global
@Aspect
class WSInstrumentation {
- @Pointcut("execution(* play.api.libs.ws.WS$WSRequest.execute()) && this(request)")
+ @Pointcut("execution(* play.api.libs.ws.ning.NingWSRequest.execute()) && this(request)")
def onExecuteRequest(request: WSRequest): Unit = {}
@Around("onExecuteRequest(request)")
diff --git a/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala b/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala
index ee51d07d..f76b20b8 100644
--- a/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala
+++ b/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala
@@ -35,7 +35,7 @@ class WSInstrumentationSpec extends PlaySpecification {
System.setProperty("config.file", "./kamon-play/src/test/resources/conf/application.conf")
- val appWithRoutes = FakeApplication(withRoutes = {
+ def appWithRoutes = FakeApplication(withRoutes = {
case ("GET", "/async") ⇒
Action {
val request = WS.url("http://maps.googleapis.com/maps/api/geocode/json?address=China&sensor=true").get()
@@ -63,4 +63,4 @@ class WSInstrumentationSpec extends PlaySpecification {
Thread.sleep(2000) //wait to complete the future
}
}
-} \ No newline at end of file
+} \ No newline at end of file