fn publish_metrics( snap: &SnapshotFile, job_name: Option<String>, labels: BTreeMap<String, String>, ) -> Result<()>