magicbane-0.1.3: A web framework that integrates Servant, ClassyPrelude, EKG, fast-logger, wai-cli…

Safe HaskellNone
LanguageHaskell2010

Magicbane.Metrics

Contents

Description

Provides metrics via monad-metrics/EKG in a Magicbane app context. Also reexports Wai metrics middleware.

Synopsis

Documentation

newtype ModMetrics Source #

Constructors

ModMetrics Metrics 

newMetricsWith :: Store -> IO ModMetrics Source #

Creates a metrics module with a particular Store. The Store should come from the backend you want to use for storing the metrics. For development, a simple backend that shows metrics on a web page is ekg-wai, reexported here.

Orphan instances

(Has ModMetrics α, Monad μ, MonadReader α μ) => MonadMetrics μ Source # 

Methods

getMetrics :: μ Metrics #