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 exponential Histogram #2930

Closed
wants to merge 4 commits into from
Closed

Conversation

ocelotl
Copy link
Contributor

@ocelotl ocelotl commented Sep 12, 2022

Fixes #2421

@ocelotl ocelotl self-assigned this Sep 12, 2022
@ocelotl ocelotl force-pushed the issue_2421 branch 28 times, most recently from d7b3317 to 57d8834 Compare September 19, 2022 11:29
@ocelotl ocelotl marked this pull request as ready for review September 19, 2022 14:21
Copy link

@jmacd jmacd left a comment

Choose a reason for hiding this comment

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

This may be too large to ask reviewers to review all at once. We are facing similar questions in the OTel-Go group, where I've proposed the corresponding be split into parts:

  1. The mapping functions
  2. The basic data structure
  3. The integration into the SDK

See the latest effort to merge just the mapping functions, which has links to the other draft parts: open-telemetry/opentelemetry-go#3243


index = self._mapping.map_to_index(value)

low, high, success = self._increment_index_by(buckets, index, incr)
Copy link

Choose a reason for hiding this comment

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

Suggest keeping the order of low, high the same as below, where it's high, low.

return number


def _with(h_low, h_high, o_low, o_high):
Copy link

Choose a reason for hiding this comment

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

suggest a longer name like combineHighAndLow()

@ocelotl
Copy link
Contributor Author

ocelotl commented Oct 3, 2022

Closing this PR to split it in smaller PRs.

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.

Add ExponentialHistogram data point to metrics SDK
2 participants