Function relay_statsd::with_client

source ·
pub fn with_client<F, R>(f: F) -> R
where F: FnOnce(&MetricsClient) -> R, R: Default,
Expand description

Invoke a callback with the current statsd client.

If statsd is not configured the callback is not invoked. For the most part the metric! macro should be used instead.