A WAI middleware to collect the following EKG metrics from compatible web servers:
- number of requests (counter
wai.request_count
) - number of responses by status code, broken down by class (counter
wai.response_status_xxx
, egwai.response_status_2xx
) - latency distribution (distribution
wai.latency_distribution
)
Compatible web servers include the following: Yesod, Scotty, Spock, Servant, Warp.
Documentation and sample code here.