Trait prima_datadog::configuration::Configuration
source · [−]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
fn is_reporting_enabled(&self) -> bool
fn is_reporting_enabled(&self) -> bool
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