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

lightstep histogram lower bound #24

Merged
merged 1 commit into from
Jul 26, 2022
Merged

lightstep histogram lower bound #24

merged 1 commit into from
Jul 26, 2022

Conversation

kvcache
Copy link
Contributor

@kvcache kvcache commented Jul 26, 2022

lightstep requires non-zero histogram buckets to have their
intended lower bound present in the data. So this change adds
the lower bucket, if missing, with 0 counts. In this way all
non-zero ranges will have a lower bound provided, and large
ranges where there aren't any observations will be represented
by large/sparse 0 ranges rather than explicit 0's for every
bucket position between the lowest and highest values.

I was told by a Lightstep engineer that this strategy for
submitting sparse histograms will work fine with their
histogram implementation.

lightstep requires non-zero histogram buckets to have their
intended lower bound present in the data. So this change adds
the lower bucket, if missing, with 0 counts. In this way all
non-zero ranges will have a lower bound provided, and large
ranges where there aren't any observations will be represented
by large/sparse 0 ranges rather than explicit 0's for every
bucket position between the lowest and highest values.

I was told by a Lightstep engineer that this strategy for
submitting sparse histograms will work fine with their
histogram implementation.
@kvc0 kvc0 merged commit d36bcba into kvc0:main Jul 26, 2022
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