Skip to content
Lev Khomich edited this page Jul 22, 2016 · 8 revisions

Dependencies

Play

libraryDependencies += "com.github.levkhomich" %% "akka-tracing-play" % "0.5.1"

Akka HTTP

libraryDependencies += "com.github.levkhomich" %% "akka-tracing-http" % "0.5.1"

Spray

libraryDependencies += "com.github.levkhomich" %% "akka-tracing-spray" % "0.5.1"

Generic Akka Project

libraryDependencies += "com.github.levkhomich" %% "akka-tracing-core" % "0.5.1"

Snapshots

resolvers += Resolver.sonatypeRepo("snapshots")

libraryDependencies += "com.github.levkhomich" %% "akka-tracing-core" % "0.6-SNAPSHOT" changing()

Or, using maven:

<dependency>
    <groupId>com.github.levkhomich</groupId>
    <artifactId>akka-tracing-core_${project.scala.version}</artifactId>
    <version>0.6-SNAPSHOT</version>
</dependency>

Make sure you have enabled Sonatype snapshots.

Configuration

In addition to above, Zipkin collector endpoint should be configured in application's config.

akka.tracing {
  host = "localhost"
  port = 9410 # default
}

Also you can setup extension to be initialized with actor system (it's not required, though):

akka.extensions += "com.github.levkhomich.akka.tracing.TracingExtension"