Tesla.StatsD.Backend behaviour (tesla_statsd v0.4.0)

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

@type amount() :: integer() | float()
@type metric() :: String.t()
@type options() :: Keyword.t()

Link to this section Callbacks

Link to this callback

gauge(metric, amount, options)

@callback gauge(metric(), amount(), options()) :: any()

Record a gauge entry

Link to this callback

histogram(metric, amount, options)

@callback histogram(metric(), amount(), options()) :: any()

Record a histogram value