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

Expand OOO native histogram tests to include gauge histograms #563

Conversation

carrieedwards
Copy link
Contributor

This PR expands OOO native histogram tests to include testing for gauge-type histograms. This is to check that gauge histograms, which do not have counter resets, are handled properly, with the correct CounterResetHint of histogram.Gauge type.

Copy link
Contributor

@fionaliao fionaliao left a comment

Choose a reason for hiding this comment

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

Adding gauge scenarios to sampleTypeScenarios looks good to me, I do have a comment about refactoring requireEqualSamples which I think is worth doing in this PR. Also I think it's worth rebasing the ooo-native-histograms branch as the requireEqualSamples function signature has changed (a ignoreCounterResets parameter was added in #565)

tsdb/head_test.go Outdated Show resolved Hide resolved
@carrieedwards carrieedwards force-pushed the cedwards/ooo-native-histograms-gauge-tests branch from 8c5c98d to 374a762 Compare November 13, 2023 19:53
@carrieedwards carrieedwards marked this pull request as ready for review November 15, 2023 16:45
@carrieedwards carrieedwards merged commit 86a2683 into cedwards/ooo-native-histograms Nov 21, 2023
6 checks passed
@carrieedwards carrieedwards deleted the cedwards/ooo-native-histograms-gauge-tests branch November 21, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants