Honeylixir.GlobalFields (honeylixir v0.5.0) View Source

Small Agent used to store and retrieve fields to be added to all events.

Link to this section Summary

Functions

Adds a new key value pair to the global state.

Returns a specification to start this module under a supervisor.

Gets all global fields

Removes a field from the global state.

Link to this section Functions

Specs

add_field(String.t(), term()) :: :ok

Adds a new key value pair to the global state.

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

fields() :: map()

Gets all global fields

Specs

remove_field(String.t()) :: :ok

Removes a field from the global state.