A metrics wrapper around akka-http routes and directives.
Current versions:
Scala 2.11 and 2.12 are supported as of version 1.0.0
.
resolvers += "bintray-backline-open-source-releases" at "https://dl.bintray.com/backline/open-source"
libraryDependencies ++= Seq(
"backline" %% "akka-http-metrics" % "1.0.0"
)
import akka.http.scaladsl.server.Directives
import backline.http.metrics.HttpTimerMetrics
trait MyRoute extends Directives with HttpTimerMetrics {
def myRoute = {
timerDirective {
(get & path("ping")) {
complete("pong")
}
}
}
}
- If you want you can make a github issue or reach out to me directly.
- Open a PR and submit it!
This software is licensed under the Apache 2.0 license.