fn encode_metrics( table_writer: &mut MultiTableData, metric: &Metric, resource_attrs: Option<&Vec<KeyValue>>, scope_attrs: Option<&Vec<KeyValue>>, ) -> Result<()>