pub trait Source: Send + Sync {
// Required method
fn append(&self, unit_name: &str, target: &mut Target);
}
Expand description
A type producing some metrics.
All this type needs to be able to do is output its metrics.
pub trait Source: Send + Sync {
// Required method
fn append(&self, unit_name: &str, target: &mut Target);
}
A type producing some metrics.
All this type needs to be able to do is output its metrics.