Latencies metrics have different behavior than other metrics.
For example, when looking at P95 and P99 quantile at a shard vs. instance level, you cannot deduce one from the other.
This patch extends the current behavior. When the aggregation function is set to sum (meaningless when looking at latencies), the behavior would be the same. When using all other aggregation functions, it would be done over the shard-specific latencies.
Known limitation, you can not use aggregation function on shard level view.
Latencies metrics have different behavior than other metrics.
For example, when looking at P95 and P99 quantile at a shard vs. instance level, you cannot deduce one from the other.
This patch extends the current behavior. When the aggregation function is set to sum (meaningless when looking at latencies), the behavior would be the same. When using all other aggregation functions, it would be done over the shard-specific latencies.
Known limitation, you can not use aggregation function on shard level view.
Fixes #1741