The kamon-cassandra
module provides bytecode instrumentation that brings automatic traces and metrics to the official Cassandra driver.
Supported releases and dependencies are shown below.
kamon-cassandra | status | jdk | scala | driver |
---|---|---|---|---|
1.0.1 | experimental | 1.8+ | 2.11, 2.12 | 3.4.0 |
To get started with SBT, simply add the following to your build.sbt
file:
// The library is publish on JCenter, so add the following line if not already present
resolvers += Resolver.jcenterRepo
// Or if you like living on the edge:
// resolvers += Resolver.bintrayRepo("fmonniot", "snapshots")
libraryDependencies += "eu.monniot.kamon" %% "kamon-cassandra" % "1.0.1"
The kamon-cassandra
module requires you to start your application using the AspectJ Weaver Agent.
You can achieve that quickly with the sbt-aspectj-runner plugin or take a look at the documentation for other options.
An example is available in the playground submodule. It also contains a quick guide on how to start.
That's it, you are now collecting metrics and tracing information from a Cassandra driver.