diff options
author | Diego <diegolparra@gmail.com> | 2014-02-11 22:40:33 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-02-11 22:40:33 -0300 |
commit | 4f8c9e160ce0b1cb93141f02a15f33d12d6522aa (patch) | |
tree | 242edecb6d1c5e7a61e0544d9a946d25dd62690b | |
parent | f82f03d2662168c29b0cbbba7937be0c018a3a31 (diff) | |
download | Kamon-4f8c9e160ce0b1cb93141f02a15f33d12d6522aa.tar.gz Kamon-4f8c9e160ce0b1cb93141f02a15f33d12d6522aa.tar.bz2 Kamon-4f8c9e160ce0b1cb93141f02a15f33d12d6522aa.zip |
WIP:play support
-rw-r--r-- | kamon-play/src/main/resources/META-INF/aop.xml | 11 | ||||
-rw-r--r-- | project/Build.scala | 10 | ||||
-rw-r--r-- | project/Dependencies.scala | 4 |
3 files changed, 23 insertions, 2 deletions
diff --git a/kamon-play/src/main/resources/META-INF/aop.xml b/kamon-play/src/main/resources/META-INF/aop.xml new file mode 100644 index 00000000..3b3314d1 --- /dev/null +++ b/kamon-play/src/main/resources/META-INF/aop.xml @@ -0,0 +1,11 @@ +<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd"> + +<aspectj> + <aspects> + <aspect name="kamon.play.filter.RequestTracing"/> + </aspects> + + <weaver options="-verbose -showWeaveInfo"> + <include within="play.api..*"/> + </weaver> +</aspectj> diff --git a/project/Build.scala b/project/Build.scala index d91d9d85..1b9c01ca 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -9,7 +9,7 @@ object Build extends Build { import Dependencies._ lazy val root = Project("root", file(".")) - .aggregate(kamonCore, kamonSpray, kamonNewrelic, kamonPlayground, kamonDashboard, kamonTestkit) + .aggregate(kamonCore, kamonSpray, kamonNewrelic, kamonPlayground, kamonDashboard, kamonTestkit, kamonPlay) .settings(basicSettings: _*) .settings(formatSettings: _*) .settings(noPublishing: _*) @@ -73,6 +73,14 @@ object Build extends Build { .dependsOn(kamonCore) + lazy val kamonPlay = Project("kamon-play", file("kamon-play")) + .settings(basicSettings: _*) + .settings(formatSettings: _*) + .settings(aspectJSettings: _*) + .settings(libraryDependencies ++= compile(playTest, aspectJ) ++ test(playTest)) + .dependsOn(kamonCore) + + lazy val site = Project("site", file("site")) .settings(basicSettings: _*) .settings(siteSettings: _*) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 85186ce6..5e59aa4d 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -4,7 +4,8 @@ object Dependencies { val resolutionRepos = Seq( "spray repo" at "http://repo.spray.io/", - "spray nightlies repo" at "http://nightlies.spray.io" + "spray nightlies repo" at "http://nightlies.spray.io", + "typesafe repo" at "http://repo.typesafe.com/typesafe/releases/" ) val sprayVersion = "1.2.0" @@ -25,6 +26,7 @@ object Dependencies { val akkaActor = "com.typesafe.akka" %% "akka-actor" % akkaVersion val akkaSlf4j = "com.typesafe.akka" %% "akka-slf4j" % akkaVersion val akkaTestKit = "com.typesafe.akka" %% "akka-testkit" % akkaVersion + val playTest = "com.typesafe.play" %% "play-test" % "2.2.1" def compile (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "compile") |