jml-web-service-0.1.0: Common utilities for running a web service

Safe HaskellNone
LanguageHaskell2010

JmlSvc.Instrument

Description

This module provides Network.Wai middlware for exporting Prometheus metrics and for instrumenting WAI applications.

Synopsis

Documentation

prometheus Source #

Arguments

:: PrometheusSettings

How we're going to use Prometheus

-> RequestLatency

A metric to instrument with request information

-> Text

The label used to identify the app

-> Middleware 

Instrument an app with Prometheus and export metrics from the configured handler.

requestLatency :: IO RequestLatency Source #