fn map_custom_side( spans: &[Span], buckets: &[f64], old_values: &[f64], new_values: &[f64], ) -> Option<(Vec<Span>, Vec<f64>)>