Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Freckle.App.Bugsnag.MetaData
Description
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
Constructors
MetaData | |
Fields
|
Arguments
:: Key | The Tab within which the values will display |
-> [Pair] | The Key-Values themselves |
-> MetaData |
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 #