-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discuss: exponential histogram addition #31340
Comments
Pinging code owners for processor/deltatocumulative: @sh0rez @RichieSams. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue still needs discussion, but since it was filed by a code owner I'm removing |
There's no explicit mention of it that I can see. But my feeling is no. https://opentelemetry.io/docs/specs/otel/metrics/data-model/#histogram If we see a difference in the bucket bounds, that should be considered an error (similar to us detecting that the start_timestamp is different). And we should call
They would be defined in the same way as in cumulative, except instead of being representative of the entire population, they only represent the subset of the population that was added in this delta metric. IE, the buckets would only have counts for the new events in the population. And count / sum would be representative of those. Thus to aggregate a delta histogram into a cumulative one, you should be able to just add
I think we can just do:
|
As far as I can tell, ExponentialHistogram should be fairly similar. Except the bucket boundaries are defined mathematically, instead of explicitly. And it splits Adding |
implementation for exponential histograms is ongoing: #32030 closing for now, explicit histograms will be done later and separately |
Component(s)
processor/deltatocumulative
Describe the issue you're reporting
To convert delta to cumulative, the spec says the following:
While that operation is clear for sums ($\text{old}+\text{sample}=\text{next}$ ), histograms are a more complex data structure:
bucket_counts
andexplicit_bounds
are required when there are buckets at all, which is nearly always the casecount
andsum
contain in a delta context?min
andmax
?Let's discuss how this operation should look like and what the edge-cases are
@jpkrohling @gouthamve @RichieSams @djaglowski
The text was updated successfully, but these errors were encountered: