eventuo11y-json-0.1.0.0: aeson-based rendering for eventuo11y
CopyrightCopyright 2022 Shea Levy.
LicenseApache-2.0
Maintainershea@shealevy.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Observe.Event.Dynamic

Description

Instrumentors can use the types in this module if they don't want to define domain-specific types for the code they're instrumenting.

Synopsis

Documentation

data DynamicEventSelector f where Source #

A simple type usable as an EventBackend selector.

All Events have DynamicField field types.

Individual DynamicEventSelectors are typically constructed via the IsString instance, e.g. withEvent backend "foo" go will call go with an Event m r DynamicEventSelector DynamicField named "foo".

data DynamicField Source #

A simple type usable as an Event field type.

Individual DynamicFields are typically constructed via the RecordField instance, using ToJSON for the value, e.g. addField ev $ "foo" ≔ x will add DynamicField "foo" (toJSON x) as a field to ev.

Constructors

DynamicField 

Fields

Instances

Instances details
DefaultRenderFieldJSON DynamicField Source # 
Instance details

Defined in Observe.Event.Render.JSON

ToJSON a => RecordField Text a DynamicField Source # 
Instance details

Defined in Observe.Event.Dynamic

Methods

(≔) :: Text -> a -> DynamicField #

Shorthand types