Skip to main content

match_key_bytes

Function match_key_bytes 

Source
fn match_key_bytes(metric: &SeriesLabels, labels: &MatchingLabels) -> usize
Expand description

The bytes one match key holds: its label pairs and, for on(...), a copy of each value.

group_key copies an on(...) value with Arc::from and shares the Arc of an ignoring(...) label, so only on(...) adds string bytes. The pairs are charged twice because the key is collected into a Vec that grows by doubling.