pub trait Source: Send + Sync {
    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.

Required methods

Appends the metrics to the target.

The unit name is provided so a source doesn’t need to keep it around.

Implementations on Foreign Types

Implementors