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

cloudv2/hdr: Fix off-by-one error for spans #3182

Merged
merged 1 commit into from
Jul 10, 2023

Commits on Jul 10, 2023

  1. cloudv2/hdr: Offset is the counter of the empty buckets

    histogram.Spans.Offset is expected to be the counter of the empty buckets and
    not the diff between the indexes.
    
    i.e., when encoding a sequence like the following:
    [1, 1, 1, 0, 2, 2]
    
    The second span must be:
    (offset=1, length=2)
    
    And not:
    (offset=2, length=2)
    codebien committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    aeb50b0 View commit details
    Browse the repository at this point in the history