glue-ekg-0.5: Make better services and clients.

Safe HaskellNone
LanguageHaskell2010

Glue.Ekg

Description

Module supporting the recording of various stats about a service using System.Metrics.

Synopsis

Documentation

recordDistribution Source #

Arguments

:: (MonadBaseControl IO m, MonadBaseControl IO n) 
=> Store

Store where the Distribution will reside.

-> Text

The name to associate the Distribution with.

-> BasicService m a b

Base service to record stats for.

-> n (BasicService m a b) 

Record the timings for service invocations with a Distribution held in the passed in Store..

recordAttempts Source #

Arguments

:: (MonadBaseControl IO m, MonadBaseControl IO n) 
=> Store

Store where the Counter will reside.

-> Text

The name to associate the Counter with.

-> BasicService m a b

Base service to record stats for.

-> n (BasicService m a b) 

Increments a counter with a Counter held in the passed in Store for each time the service is called.

recordSuccesses Source #

Arguments

:: (MonadBaseControl IO m, MonadBaseControl IO n) 
=> Store

Store where the Counter will reside.

-> Text

The name to associate the Counter with.

-> BasicService m a b

Base service to record stats for.

-> n (BasicService m a b) 

Increments a counter with a Counter held in the passed in Store for each time the service successfully returns.

recordFailures Source #

Arguments

:: (MonadBaseControl IO m, MonadBaseControl IO n) 
=> Store

Store where the Counter will reside.

-> Text

The name to associate the Counter with.

-> BasicService m a b

Base service to record stats for.

-> n (BasicService m a b) 

Increments a counter with a Counter held in the passed in Store for each time the service fails.

recordLastRequest Source #

Arguments

:: (MonadBaseControl IO m, MonadBaseControl IO n, Show a) 
=> Store

Store where the Label will reside.

-> Text

The name to associate the Label with.

-> BasicService m a b

Base service to record stats for.

-> n (BasicService m a b) 

Sets a Label held in the passed in Store for each request the service receives.

recordLastResult Source #

Arguments

:: (MonadBaseControl IO m, MonadBaseControl IO n, Show b) 
=> Store

Store where the Label will reside.

-> Text

The name to associate the Label with.

-> BasicService m a b

Base service to record stats for.

-> n (BasicService m a b) 

Sets a Label held in the passed in Store for each successful result the service returns.