eventuo11y-0.1.0.0: An event-oriented observability library
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".

Instances

Instances details
f ~ DynamicField => IsString (DynamicEventSelector f) Source # 
Instance details

Defined in Observe.Event.Dynamic

data DynamicField Source #

A simple type usable as an Event field type.

Individual DynamicFields are typically constructed via the IsString 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
ToJSON x => IsString (x -> DynamicField) Source #

Treat a string as a function to a DynamicField, calling toJSON on its argument.

Instance details

Defined in Observe.Event.Dynamic

Methods

fromString :: String -> x -> DynamicField #

Shorthand types