Skip to content

histogram: expose FindBucket in Histogram API #3

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

Conversation

dhartunian
Copy link

@dhartunian dhartunian commented Feb 11, 2025

In order to record observations into multiple histograms efficiently,
it is helpful to be able to execute the findBucket call on the
client-side and then use the bucket to update multiple histogram
instances.

This change makes FindBucket and ObserveInternal public and
introduces the HistogramInternal interface to expose them since
Histogram itself is implemented by many implementations we want to
avoid modifying.

In order to record observations into multiple histograms efficiently,
it is helpful to be able to execute the `findBucket` call on the
client-side and then use the bucket to update multiple histogram
instances.

This change makes `FindBucket` and `ObserveInternal` public and
introduces the `HistogramInternal` interface to expose them since
`Histogram` itself is implemented by many implementations we want to
avoid modifying.
@dhartunian dhartunian closed this Feb 12, 2025
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.

1 participant