Skip to content

Fokko/akka-http-metrics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

akka-http-metrics

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.

Install & Usage

resolvers += "bintray-backline-open-source-releases" at "https://dl.bintray.com/backline/open-source"
libraryDependencies ++= Seq(
  "backline" %% "akka-http-metrics" % "1.0.0"
)

Example Usage

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")
      }
    }
  }
}

Contributing

  • If you want you can make a github issue or reach out to me directly.
  • Open a PR and submit it!

License

This software is licensed under the Apache 2.0 license.

About

metrics support for akka-http apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%