-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[processor/deltatocumulative]: explicit-bounds histograms #33983
[processor/deltatocumulative]: explicit-bounds histograms #33983
Conversation
bf80765
to
8645aa8
Compare
@RichieSams can you please take a look? @djaglowski because @jpkrohling is out, would you be able to merge once reviewed and approved? |
panic("todo") | ||
// bounds different: no way to merge, so reset observation to new boundaries | ||
if !pslice.Equal(dp.ExplicitBounds(), in.ExplicitBounds()) { | ||
in.MoveTo(dp.HistogramDataPoint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a metric for how often this occurs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm, but will do later as we don't have a good way of accessing a Meter
here without refactoring the telemetry
package
in.MoveTo(dp.HistogramDataPoint) | ||
return dp | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to do the StartTimeUnixNano
checks like we do for Sums?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are! the code I think you talk about is in delta.Accumulator[T]
, which applies to all datatypes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh. that's why I missed it :)
Added two comments. Overall LGTM |
57d7906
to
e309836
Compare
👋 👋 is there any way of testing this PR out? We currently got bitten by the lack of support for normal histograms, moving to exponentials is not a real option right now and this looks like it adds the required support |
@xocasdashdash yes, when building your own collector (https://opentelemetry.io/docs/collector/custom-collector/) you can specify this branch as the version for deltatocumulative (using a replace directive) |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
adds aggregation support for fixed-bucket / explicit bounds histograms
99715c4
to
b89bee5
Compare
…etry#33983) **Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> adds aggregation support for fixed-bucket / explicit bounds histograms **Link to tracking Issue:** open-telemetry#30705 **Testing:** unit tests added **Documentation:** none
Description:
adds aggregation support for fixed-bucket / explicit bounds histograms
Link to tracking Issue: #30705
Testing: unit tests added
Documentation: none