validate_label

Function validate_label 

Source
pub fn validate_label(label: &str)
Expand description

Validates that a label matches Prometheus metric name format: [a-zA-Z][a-zA-Z0-9_]*.

ยงPanics

Panics if the label is empty, starts with a non-alphabetic character, or contains characters other than [a-zA-Z0-9_].