View Source Sibyl.Handlers (Sibyl v0.1.6)
Groups functions to make it easy to attach telemetry events to handlers
Link to this section Summary
Functions
Reflects upon the state of the current application's modules and all other dynamically loaded module and attaches any events defined in those modules to the given handler.
Attaches the given events the given handler.
Reflects upon the given module and attaches any events defined in those modules to the given handler.
Link to this section Types
@type handler() :: module()
Link to this section Functions
Reflects upon the state of the current application's modules and all other dynamically loaded module and attaches any events defined in those modules to the given handler.
Any options are forwarded to the given handler also.
Takes an optional, but recommended :name => String.t()
option too.
@spec attach_events([Sibyl.Events.event()], handler(), Keyword.t()) :: :ok
Attaches the given events the given handler.
Any options are forwarded to the given handler also.
Takes an optional, but recommended :name => String.t()
option too.
Reflects upon the given module and attaches any events defined in those modules to the given handler.
Any options are forwarded to the given handler also.
Takes an optional, but recommended :name => String.t()
option too.