pub trait DogStatsdClient:
Send
+ Sync
+ 'static {
// Required methods
fn increment(&self, name: &str, value: f64, tags: &[(String, String)]);
fn histogram(&self, name: &str, value: f64, tags: &[(String, String)]);
fn distribution(&self, name: &str, value: f64, tags: &[(String, String)]);
}Expand description
The subset of the DogStatsD client API the exporter uses.
tags are (name, value) pairs in wire order. Implementations format
them as name:value for their transport.
Required Methods§
Sourcefn increment(&self, name: &str, value: f64, tags: &[(String, String)])
fn increment(&self, name: &str, value: f64, tags: &[(String, String)])
Add value to the counter name.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".