metrex v0.2.1 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.

Link to this section Summary

Link to this section Callbacks

Link to this callback

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

Link to this callback

counter_init(metric)
counter_init(metric :: String.t()) :: integer()

Link to this callback

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

Link to this callback

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