fn build_side_buckets( spans: impl Iterator<Item = (i32, i32)>, counts: &[f64], schema: i32, custom_values: &[f64], positive: bool, ) -> Option<Vec<Bucket>>