pub(crate) fn parse_metrics(source: &str) -> Result<Vec<Metric>>
Parses metrics from the given source code.