bonny v0.3.3 Bonny.Telemetry

List of telemetry events.

Link to this section Summary

Functions

Measures a functions execution time in seconds

Link to this section Functions

Link to this function

emit(names)
emit([atom()]) :: :ok

Wrapper around :telemetry.execute/3.

Prepends :bonnny to all atom lists.

Link to this function

emit(names, measurements, metadata)
emit([atom()], map(), map()) :: :ok

Link to this function

events()
events() :: [[atom()]]

Link to this function

measure(function)
measure((... -> any())) :: {float(), any()}

Measures a functions execution time in seconds

Examples

iex> Bonny.Telemetry.measure fn ->
...>   :timer.sleep(1000)
...>   "Hello!"
...> end
{1.00426, "Hello!"}