View Source Zexbox.Telemetry (Zexbox v1.4.0)
A (very) thin wrapper around the :telemetry erlang module
Summary
Functions
Attaches the given handler to the specified event.
Types
Functions
@spec attach(event_name(), event_params(), callback(), config()) :: :ok | {:error, :already_exists}
Attaches the given handler to the specified event.
see :telemetry.attach/4 for more information
Examples
iex> Zexbox.Telemetry.attach(:my_event, [:my, :event], &MyAppHandler.my_handler/3, nil)
:ok