tesla_statsd v0.3.1 Tesla.StatsD.Backend behaviour

A behaviour for StatsD backend.

Statix is supported out of box.

Link to this section Summary

Callbacks

Record a gauge entry

Record a histogram value

Link to this section Types

Link to this type amount()
amount() :: integer() | float()
Link to this type metric()
metric() :: String.t()
Link to this type options()
options() :: Keyword.t()

Link to this section Callbacks

Link to this callback gauge(metric, amount, options)
gauge(metric(), amount(), options()) :: any()

Record a gauge entry

Link to this callback histogram(metric, amount, options)
histogram(metric(), amount(), options()) :: any()

Record a histogram value