freckle-app-1.11.0.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

metaData Source #

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.

metaDataAnnotationsBeforeNotify :: BeforeNotify Source #

If any MetaData values are present among the original exception's annotations, merge them into the Bugsnag event's metadata.