Trait prima_datadog::configuration::Configuration
source · pub trait Configuration {
// Required methods
fn to_addr(&self) -> &str;
fn from_addr(&self) -> &str;
fn namespace(&self) -> &str;
fn default_tags(&self) -> Vec<String>;
fn socket_path(&self) -> Option<String>;
fn batching_options(&self) -> Option<BatchingOptions>;
// Provided method
fn take_tracker_config(&mut self) -> TagTrackerConfiguration { ... }
}Expand description
A trait representing a valid configuration entity
Required Methods§
Default tags to be sent with every metric reporting
sourcefn socket_path(&self) -> Option<String>
fn socket_path(&self) -> Option<String>
if defined, will use UDS instead of UDP and will ignore UDP options
sourcefn batching_options(&self) -> Option<BatchingOptions>
fn batching_options(&self) -> Option<BatchingOptions>
if defined, will utilize batching for sending metrics
Provided Methods§
sourcefn take_tracker_config(&mut self) -> TagTrackerConfiguration
fn take_tracker_config(&mut self) -> TagTrackerConfiguration
Get the tag tracker configuration, and reset it to default. See TagTrackerConfiguration