recipe v0.4.2 Recipe.Telemetry behaviour View Source
The Recipe.Telemetry
behaviour can be used to define
a module capable of handling events emitted by a recipe
run.
Each callback is invoked at different step of a recipe run, receiving data about the current step and its execution time.
Please refer to the docs for Recipe.run/3
to see how to
enable debug and telemetry information.
Link to this section Summary
Callbacks
Invoked after failing to execute a step
Invoked at the end of a recipe execution, irrespectively of the success or failure of the last executed step
Invoked at the start of a recipe execution
Invoked after successfully executing a step
Link to this section Types
Link to this section Callbacks
on_error(Recipe.step, term, Recipe.t, elapsed_microseconds) :: :ok
Invoked after failing to execute a step.
Invoked at the end of a recipe execution, irrespectively of the success or failure of the last executed step.
Invoked at the start of a recipe execution.
on_success(Recipe.step, Recipe.t, elapsed_microseconds) :: :ok
Invoked after successfully executing a step.