pub trait DogStatsDExport {
// Required method
fn export_dogstatsd(
&self,
output: &mut String,
name: &str,
tags: &[(&str, &str)],
);
}Expand description
Trait for exporting a metric in DogStatsD format.
Format: metric.name:value|type|#tag1:value1,tag2:value2
Types:
c- counter (increment)g- gauge (point-in-time value)d- distribution (percentile-capable: p50/p95/p99 in Datadog)
Required Methods§
Sourcefn export_dogstatsd(
&self,
output: &mut String,
name: &str,
tags: &[(&str, &str)],
)
fn export_dogstatsd( &self, output: &mut String, name: &str, tags: &[(&str, &str)], )
Export this metric to the output string in DogStatsD format.
output: String buffer to append to (one line per metric, newline-terminated)name: The metric name (with prefix already applied)tags: Additional tags to append (e.g.,&[("env", "prod")])