pub fn check_metric(metric: Metric) -> Result<()>
Whether metric is one this build can measure.
metric
Code::Unsupported, saying what to do instead.
Code::Unsupported