freckle-app-1.15.5.0: Haskell application toolkit used at Freckle
Safe HaskellSafe-Inferred
LanguageHaskell2010

Freckle.App.Bugsnag.MetaData

Description

Working with Bugsnag's event_metaData field

Synopsis

Documentation

newtype MetaData #

Constructors

MetaData 

Fields

Instances

Instances details
Monoid MetaData 
Instance details

Defined in Network.Bugsnag.MetaData

Semigroup MetaData 
Instance details

Defined in Network.Bugsnag.MetaData

Show MetaData 
Instance details

Defined in Network.Bugsnag.MetaData

Eq MetaData 
Instance details

Defined in Network.Bugsnag.MetaData

metaData #

Arguments

:: Key

The Tab within which the values will display

-> [Pair]

The Key-Values themselves

-> MetaData 

Construct MetaData from Pairs

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.

BeforeNotify

mergeMetaData :: MetaData -> BeforeNotify Source #

Merge MetaData into the Event

The given metadata will be combined with what already exists using (<>), preserving the incoming values on collisions.