Kamon integration for metrics, context and distributed tracing with Akka HTTP
Scala
Clone or download
ivantopo Merge pull request #37 from Falmarri/feature/entity-stream-trace
Finish the span only when the entity is completely drained
Latest commit 6e927b3 Jul 21, 2018

README.md

Kamon akka-http

Gitter Build Status Maven Central


Kamon Akka Http module provides bytecode instrumentation to gather metrics and perform automatic Context propagation on your behalf, both on the client and server side.

Adding the Module

Supported releases and dependencies are shown below.

kamon-akka-http-2.4 status jdk scala akka
1.0.1 stable 1.8+ 2.11, 2.12 2.4.x
kamon-akka-http-2.5 status jdk scala akka
1.0.1 stable 1.8+ 2.11, 2.12 2.5.x

To get started with SBT add the following to your build.sbt or pom.xml file:

libraryDependencies += "io.kamon" %% "kamon-akka-http-2.5" % "1.0.1"
<dependency>
    <groupId>io.kamon</groupId>
    <artifactId>kamon-akka-http-2.5_2.12</artifactId>
    <version>1.0.1</version>
</dependency>

Run

The kamon-akka-http 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.

Enjoy!

Feel free to ask anything you might need in our Gitter channel or in the mailing list.