The kamon-play
module ships with bytecode instrumentation that brings automatic traces and spans management to your Play! applications. The details on what those features are about can be found
in the base functionality documentation section. Here we will dig into the specific aspects of bringing support for them when using
Play!.
The kamon-play module requires you to start your application using the AspectJ Weaver Agent. Kamon will warn you at startup if you failed to do so.
Since Kamon 1.0.0 we support Play Framework 2.4, 2.5 and 2.6!. Please make sure you add either kamon-play-24, kamon-play-25 or kamon-play-26 to your project's classpath.
Kamon Play is currently available for Scala 2.10, 2.11 and 2.12.
Supported releases and dependencies are shown below.
kamon-play-2.4 | status | jdk | scala |
---|---|---|---|
1.0.1 | stable | 1.7+, 1.8+ | 2.10, 2.11 |
kamon-play-2.5 | status | jdk | scala |
---|---|---|---|
1.0.1 | stable | 1.7+, 1.8+ | 2.11 |
kamon-play-2.6 | status | jdk | scala |
---|---|---|---|
1.0.1 | stable | 1.8+ | 2.12 |
To get started with SBT, simply add the following to your build.sbt
or pom.xml
file:
libraryDependencies += "io.kamon" %% "kamon-play-[play-version]" % "1.0.1"
<dependency>
<groupId>io.kamon</groupId>
<artifactId>kamon-play-[play-version]_2.12</artifactId>
<version>1.0.1</version>
</dependency>