I'm working on a refactor of a Clojure wrapper library (clj-commons/iapetos) and I stumbled upon a design change on the access of values for Histogram and Summary metrics.
When using simpleclient we used to be able to call get() on a Histogram/Summary.Child instance and obtain count, sum and bucket/quantile values. On client_java that is no longer possible, as there is no public method to get a value out of a Histogram/Summary.DataPoint.
The only way I found to get these was to call collect() on the StatefulMetric instance, but then it requires iterating through data points in the MetricSnapshot to find which one matches the label values I'm looking for.
- Was this change a design decision? If so, can you share the reasoning behind it?