Skip to main content

Labels

Derive Macro Labels 

Source
#[derive(Labels)]
Expand description

Derives Labels for a struct with named fields. Each field becomes a metric label with the field’s name and a value implementing LabelValue. See encore::metrics::Labels.