fn append_pipeline_labels( map: &mut BTreeMap<KeyString, Value>, labels: Option<BTreeMap<String, String>>, )