Description
Deprecate BasicCounters and provide a replacement that is user friendly and flexible.
BasicCounters can only be a group of ints or longs or doubles. It cannot be a mix of number types.
The aggregation of basic counters to a logical counter does min, max, sum, avg always. There is no flexibility to provide your own aggregation method and do selective aggregations.
Provide Metrics and a way to control what all aggregations can be done on it.
- Metrics can be a mix of all numeric types.
- It gives flexibility to provide what aggregations can be done. This can be used for aggregating physical counters to logical counters
- Supports custom aggregations of metric.