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

histogram: fix percentiles for empty histograms #116

Merged
merged 1 commit into from
Jun 12, 2024

Commits on Jun 8, 2024

  1. histogram: fix percentiles for empty histograms

    When the histogram is empty, the percentiles function
    currently returns the first bucket for the standard
    histogram and panics due to an underflow in the sparse
    histogram. Change the signature to return an Optional
    value, which is set to None in the empty histogram case
    for both standard and sparse histograms.
    
    Also, add a batched percentile lookup for the sparse
    histogram to bring the interface in line with the
    standard histogram.
    mihirn committed Jun 8, 2024
    Configuration menu
    Copy the full SHA
    5fba885 View commit details
    Browse the repository at this point in the history