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

feat: Made sure summaries actually give output quantile objectives as well; improved flag docs and tests for complex type series calculation. #93

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

bwplotka
Copy link
Member

@bwplotka bwplotka commented Oct 1, 2024

@bwplotka bwplotka changed the title feat: Made sure summaries actually give output quantile objectives as… feat: Made sure summaries actually give output quantile objectives as well; improved flag docs and tests for complex type series calculation. Oct 1, 2024
… well; improved flag docs and tests for complex type series calculation.

Signed-off-by: bwplotka <[email protected]>
Copy link

@ridwanmsharif ridwanmsharif left a comment

Choose a reason for hiding this comment

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

LGTM

// Mimic some quantile objectives.
objectives := map[float64]float64{}
if c.cfg.SummaryObjectives > 0 {
parts := 100 / c.cfg.SummaryObjectives

Choose a reason for hiding this comment

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

qq: is it valid for summary objectives to be greater than 100?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, they should be from 0.0 to 1.0 - you can see I am dividing by 100.0 later on. Using 100 to have cheap integer mitigation of float precision issues when substracting things later on (:

@bwplotka bwplotka merged commit 5bc0599 into main Oct 2, 2024
7 checks passed
@bwplotka bwplotka deleted the fix3 branch October 2, 2024 08:17
Copy link
Contributor

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

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

Sorry missed this! But LGTM!

Copy link
Contributor

@jmichalek132 jmichalek132 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants