Bella.Sys.Event (bella v0.0.1) View Source
Bella.Sys.Event
is a thin wrapper around :telemetry
.
All events will be prefixed with bella
.
The following events are emitted:
[:bella, :task, :stopped]
[:bella, :task, :failed]
[:bella, :task, :succeeded]
[:bella, :task, :unregistered]
[:bella, :task, :registered]
[:bella, :task, :initialized]
[:bella, :scheduler, :binding, :failed]
[:bella, :scheduler, :binding, :succeeded]
[:bella, :scheduler, :nodes, :fetch, :failed]
[:bella, :scheduler, :nodes, :fetch, :succeeded]
[:bella, :scheduler, :pods, :fetch, :failed]
[:bella, :scheduler, :pods, :fetch, :succeeded]
[:bella, :reconciler, :genserver, :down]
[:bella, :reconciler, :reconcile, :failed]
[:bella, :reconciler, :reconcile, :succeeded]
[:bella, :reconciler, :run, :started]
[:bella, :reconciler, :fetch, :failed]
[:bella, :reconciler, :fetch, :succeeded]
[:bella, :reconciler, :initialized]
[:bella, :watcher, :genserver, :down]
[:bella, :watcher, :chunk, :received]
[:bella, :watcher, :watch, :timedout]
[:bella, :watcher, :watch, :failed]
[:bella, :watcher, :watch, :finished]
[:bella, :watcher, :watch, :succeeded]
[:bella, :watcher, :watch, :started]
[:bella, :watcher, :initialized]
To access this list programmatically use events/0
.
If set, default metadata will be applied to all events. See: metadata/0
Link to this section Summary
Functions
Returns a list of all events emitted by this module
Measure function execution in ms and return in map w/ results.
Default metadata added to all events.
Merges metadata with defaults
The instrumenter name
Link to this section Functions
Specs
events() :: [[atom()]]
Returns a list of all events emitted by this module:
[:bella, :task, :stopped]
[:bella, :task, :failed]
[:bella, :task, :succeeded]
[:bella, :task, :unregistered]
[:bella, :task, :registered]
[:bella, :task, :initialized]
[:bella, :scheduler, :binding, :failed]
[:bella, :scheduler, :binding, :succeeded]
[:bella, :scheduler, :nodes, :fetch, :failed]
[:bella, :scheduler, :nodes, :fetch, :succeeded]
[:bella, :scheduler, :pods, :fetch, :failed]
[:bella, :scheduler, :pods, :fetch, :succeeded]
[:bella, :reconciler, :genserver, :down]
[:bella, :reconciler, :reconcile, :failed]
[:bella, :reconciler, :reconcile, :succeeded]
[:bella, :reconciler, :run, :started]
[:bella, :reconciler, :fetch, :failed]
[:bella, :reconciler, :fetch, :succeeded]
[:bella, :reconciler, :initialized]
[:bella, :watcher, :genserver, :down]
[:bella, :watcher, :chunk, :received]
[:bella, :watcher, :watch, :timedout]
[:bella, :watcher, :watch, :failed]
[:bella, :watcher, :watch, :finished]
[:bella, :watcher, :watch, :succeeded]
[:bella, :watcher, :watch, :started]
[:bella, :watcher, :initialized]
Great for use with :telemetry.attach_many/4
Specs
Measure function execution in ms and return in map w/ results.
Examples
iex> Bella.Sys.Event.measure(IO, :puts, ["hello"])
{%{duration: 33}, :ok}
Specs
metadata() :: map()
Default metadata added to all events.
Defaults:
%{}
Specs
Merges metadata with defaults
Specs
name() :: atom()
The instrumenter name