[][src]Function glean_core::metrics::dynamic_label

pub fn dynamic_label(
    glean: &Glean,
    meta: &CommonMetricData,
    base_identifier: &str,
    label: &str
) -> String

Validate a dynamic label, changing it to OTHER_LABEL if it's invalid.

Checks the requested label against limitations, such as the label length and allowed characters.

Arguments

  • label - The requested label

Return value

Returns the entire identifier for the metric, including the base identifier and the corrected label. The errors are logged.