metrex v0.2.0 Metrex.Hook behaviour

This module helps to sync and async hooks into the lifecycle of init and exit signals for metrics.

Please refer to README.md file for more information.

Summary

Callbacks

counter_exit(reason, metric, val)

Specs

counter_exit(reason :: atom, metric :: String.t, val :: integer) :: :ok
counter_init(metric)

Specs

counter_init(metric :: String.t) :: integer
meter_exit(reason, metric, val)

Specs

meter_exit(reason :: atom, metric :: String.t, val :: [atom]) :: :ok
meter_init(metric)

Specs

meter_init(metric :: String.t) :: [atom]