init

Function init 

Source
pub fn init(config: &MetricsConfig) -> Result<(), Error>
Expand description

Initializes the global DogStatsD metrics exporter.

Returns Ok(()) immediately when config.addr is None — in that case the global recorder is never installed and all metrics calls are no-ops.