pub fn metadata_to_fields( metadata: &Option<HashMap<String, String>>, ) -> Vec<(&str, &str)>
Extract structured fields from metadata for tracing