freckle-app-1.7.1.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 Source #

Constructors

MetaData 

Fields

Instances

Instances details
Monoid MetaData Source # 
Instance details

Defined in Freckle.App.Bugsnag.MetaData

Semigroup MetaData Source # 
Instance details

Defined in Freckle.App.Bugsnag.MetaData

Show MetaData Source # 
Instance details

Defined in Freckle.App.Bugsnag.MetaData

Eq MetaData Source # 
Instance details

Defined in Freckle.App.Bugsnag.MetaData

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.