| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Glue.Ekg
Description
Module supporting the recording of various stats about a service using System.Metrics.
Synopsis
- recordDistribution :: (MonadBaseControl IO m, MonadBaseControl IO n) => Store -> Text -> BasicService m a b -> n (BasicService m a b)
- recordAttempts :: (MonadBaseControl IO m, MonadBaseControl IO n) => Store -> Text -> BasicService m a b -> n (BasicService m a b)
- recordSuccesses :: (MonadBaseControl IO m, MonadBaseControl IO n) => Store -> Text -> BasicService m a b -> n (BasicService m a b)
- recordFailures :: (MonadBaseControl IO m, MonadBaseControl IO n) => Store -> Text -> BasicService m a b -> n (BasicService m a b)
- recordLastRequest :: (MonadBaseControl IO m, MonadBaseControl IO n, Show a) => Store -> Text -> BasicService m a b -> n (BasicService m a b)
- recordLastResult :: (MonadBaseControl IO m, MonadBaseControl IO n, Show b) => Store -> Text -> BasicService m a b -> n (BasicService m a b)
Documentation
Arguments
| :: (MonadBaseControl IO m, MonadBaseControl IO n) | |
| => Store |
|
| -> Text | The name to associate the |
| -> 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..
Arguments
| :: (MonadBaseControl IO m, MonadBaseControl IO n) | |
| => Store | |
| -> Text | The name to associate the |
| -> BasicService m a b | Base service to record stats for. |
| -> n (BasicService m a b) |
Arguments
| :: (MonadBaseControl IO m, MonadBaseControl IO n) | |
| => Store | |
| -> Text | The name to associate the |
| -> BasicService m a b | Base service to record stats for. |
| -> n (BasicService m a b) |
Arguments
| :: (MonadBaseControl IO m, MonadBaseControl IO n) | |
| => Store | |
| -> Text | The name to associate the |
| -> BasicService m a b | Base service to record stats for. |
| -> n (BasicService m a b) |
Arguments
| :: (MonadBaseControl IO m, MonadBaseControl IO n, Show a) | |
| => Store | |
| -> Text | The name to associate the |
| -> BasicService m a b | Base service to record stats for. |
| -> n (BasicService m a b) |
Arguments
| :: (MonadBaseControl IO m, MonadBaseControl IO n, Show b) | |
| => Store | |
| -> Text | The name to associate the |
| -> BasicService m a b | Base service to record stats for. |
| -> n (BasicService m a b) |