Skip to content
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

Merged
merged 7 commits into from
Aug 14, 2024

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Jul 9, 2024

Description:

adds aggregation support for fixed-bucket / explicit bounds histograms

Link to tracking Issue: #30705

Testing: unit tests added

Documentation: none

@github-actions github-actions bot requested review from jpkrohling and RichieSams July 9, 2024 14:14
@sh0rez sh0rez changed the title [processor/deltatocumulative]: fixed histograms [processor/deltatocumulative]: explicit histograms Jul 12, 2024
@sh0rez sh0rez force-pushed the deltatocumulative-histograms branch 2 times, most recently from bf80765 to 8645aa8 Compare July 18, 2024 13:04
@sh0rez sh0rez changed the title [processor/deltatocumulative]: explicit histograms [processor/deltatocumulative]: explicit-bounds histograms Jul 18, 2024
@sh0rez sh0rez marked this pull request as ready for review July 18, 2024 13:08
@sh0rez sh0rez requested a review from a team July 18, 2024 13:08
@sh0rez
Copy link
Member Author

sh0rez commented Jul 21, 2024

@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)
Copy link
Contributor

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?

Copy link
Member Author

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
}

Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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 :)

@RichieSams
Copy link
Contributor

Added two comments. Overall LGTM

@sh0rez sh0rez force-pushed the deltatocumulative-histograms branch from 57d7906 to e309836 Compare July 22, 2024 09:17
@xocasdashdash
Copy link

👋 👋

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

@sh0rez
Copy link
Member Author

sh0rez commented Jul 24, 2024

@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)

Copy link
Contributor

github-actions bot commented Aug 8, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Aug 8, 2024
@sh0rez sh0rez force-pushed the deltatocumulative-histograms branch from 99715c4 to b89bee5 Compare August 14, 2024 10:38
@jpkrohling jpkrohling merged commit 3190917 into open-telemetry:main Aug 14, 2024
154 checks passed
@github-actions github-actions bot added this to the next release milestone Aug 14, 2024
f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this pull request Sep 12, 2024
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants