Skip to main content

is_publishable_label_value

Function is_publishable_label_value 

Source
fn is_publishable_label_value(value: Option<&str>) -> bool
Expand description

Whether a label value can be published as-is. A null (None) has no value to encode, and an empty string reads as absent to Prometheus, so {a => ''} would fold into {}. Both make the row that carries them unpublishable.