pub trait Configuration {
    fn to_addr(&self) -> &str;
    fn from_addr(&self) -> &str;
    fn namespace(&self) -> &str;
    fn is_reporting_enabled(&self) -> bool;
    fn default_tags(&self) -> Vec<String>;
}
Expand description

A trait representing a valid configuration entity

Required Methods

The address of the udp socket we’ll bind to for sending

The address of the udp socket we’ll send metrics and events to

A namespace to prefix all metrics with, joined with a ‘.’.

Whether to send metrics or not. This is useful to make the client silent in certain condition

Default tags to be sent with every metric reporting

Implementations on Foreign Types

Implementors