@hackage / wai-middleware-metrics

A WAI middleware to collect EKG request metrics

Latest0.2.4

About

Metadata

  • Last updated , by Helkafen
  • License BSD-3-Clause
  • Categories Web Development
  • Maintained by: arnaudpourseb@gmail.com

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.0.2

Readme

This WAI middleware counts the number of requests, the number of responses by status code and keeps a latency distribution.

It can be added to any WAI-based webserver, such as Yesod, Scotty, Spock and Servant.

The counters are EKG Counters from ekg-core. https://ocharles.org.uk/blog/posts/2012-12-11-24-day-of-hackage-ekg.html