pub fn remove_children_with_label<V: MetricVec_ + Collector>(
vec: &V,
name: &str,
value: &str,
)Available on crate feature
metrics only.Expand description
Removes every child of vec whose label name has the value value.
Prometheus removes children only by their full label tuple, so this learns the tuples by collecting the vec, which clones every child once. Meant for occasional cleanup such as dropping an object’s series, not for hot paths.