metricNameFn may return null to indicate "record no metric"