You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This decision was made in the initial beta release of the metrics, but after using this data model in the collector for some time, I came to the conclusion that they are a bit harmful (I have a bunch of places where I have to deal with conversion for this extra type). By using only the DoubleHistograms we may lose precision for the sum and for the value in the Exemplar (see #256 for details about exemplar). Same argument as described in the Exemplar case can be applied for the sum, and we also can consider the fact that usually when exporting a Histogram users will often look at the percentiles which will be anyway approximations and precision will be lost there regardless of the sum being accurate.
We will keep the IntGuage/IntSum for special cases where people really care about precision for these large numbers.
The deprecation will work this way:
Rename current DoubleHistogram to just Histogram.
Deprecate IntDouble from the metric types we support.
bogdandrutu
changed the title
Consider to remove IntHistogram and offer only DoubleHistograms (a.k.a Histograms)
Consider to remove IntHistogram and offer only DoubleHistogram (a.k.a Histogram)
Feb 12, 2021
This decision was made in the initial beta release of the metrics, but after using this data model in the collector for some time, I came to the conclusion that they are a bit harmful (I have a bunch of places where I have to deal with conversion for this extra type). By using only the
DoubleHistograms
we may lose precision for thesum
and for thevalue
in the Exemplar (see #256 for details about exemplar). Same argument as described in the Exemplar case can be applied for thesum
, and we also can consider the fact that usually when exporting a Histogram users will often look at the percentiles which will be anyway approximations and precision will be lost there regardless of thesum
being accurate.We will keep the IntGuage/IntSum for special cases where people really care about precision for these large numbers.
The deprecation will work this way:
DoubleHistogram
to justHistogram
.IntHistograms
type, the receiver can convert it into the newHistogram
, only operation needed is to convert the int64 sum into double. Exemplars will be handled by Consider to remove IntExemplar and offer only DoubleExemplar (a.k.a Exemplar) #256./cc @jmacd @open-telemetry/specs-metrics-approvers
The text was updated successfully, but these errors were encountered: