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

Add ExponentialHistogram to Metrics data model #1935

Merged
merged 26 commits into from
Oct 7, 2021
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions specification/metrics/datamodel.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,12 @@ lookup table with `O(2**scale)` entries.

##### Producer recommendations

Regardless of scale or mapping technique, it can be difficult to
jmacd marked this conversation as resolved.
Show resolved Hide resolved
correctly map values to indices at the extremes of the floating-point
range. Some mapping functions may correctly compute an index whose
upper- or lower-boundary cannot be represented. This is considered a
normal condition which consumers are expected to handle.

For positive scales, the logarithm method is preferred because it
requires very little code, is easy to validate and is nearly as fast
and accurate as the lookup table approach. For zero scale and
Expand Down