Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Working with Bugsnag's event_metaData
field
Synopsis
- newtype MetaData = MetaData {
- unMetaData :: Object
- metaData :: Key -> [Pair] -> MetaData
- metaDataL :: Lens' Event MetaData
- collectMetaData :: (MonadIO m, MonadReader env m, HasStatsClient env) => m MetaData
- collectMetaDataFromStatsClient :: (MonadReader env m, HasStatsClient env) => m MetaData
- collectMetaDataFromThreadContext :: MonadIO m => m MetaData
- mergeMetaData :: MetaData -> BeforeNotify
Documentation
Construct MetaData
from Pair
s
Collecting ambient data
collectMetaData :: (MonadIO m, MonadReader env m, HasStatsClient env) => m MetaData Source #
Collect MetaData
from a StatsClient
and myThreadContext
Using this (and then mergeMetaData
) will unify exception metadata with
metrics tags and the logging context.
collectMetaDataFromStatsClient :: (MonadReader env m, HasStatsClient env) => m MetaData Source #
collectMetaDataFromThreadContext :: MonadIO m => m MetaData Source #
BeforeNotify
mergeMetaData :: MetaData -> BeforeNotify Source #