-
Notifications
You must be signed in to change notification settings - Fork 41
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
Clarify tracking of highest and lowest trackable values #75
Comments
In particular for |
Are |
Nope, they aren't, but we have to keep track of those numbers for serialization anyway. We don't need to ship them in v1, so to speak, but we should probably leave room for them name-wise in case it turns out that something needs them. The use cases I could imagine are things like generic display tools for histograms that might want to list all the metadata or things like that. |
Hmm.. I'm partial to exposing the actual low and high as |
I have some reservations about that nomenclature.
I don't think those are deal breakers, so if your heart is set on |
Well, we already have |
Hm, I do kinda like returning something more structured -- what about perhaps even taking it one level further and exposing a struct that has all that sort of stuff in it (min, max, unit magnitude, etc)? That would help reduce the rather imposing number of methods on |
Yeah, that's not a bad idea. Something like |
I think maybe we could divide the fields in
Assuming that doesn't end up seeming odd in practice, we could bundle up the last group and expose that to users. |
While going through my email, I came across some relevant notes from @giltene on the subject. The first is HdrHistogram/hdrhistogram-go#23 (comment). The second is from Gitter:
|
See #74 (comment) for more context.
We save in fields (and write when serializing) the requested limits, not the actual limits that result from the underlying encoding (which will encompass at least as much as what the user requested, and maybe more). Perhaps we should expose the actual limits of what a particular histogram can do, rather than just regurgitate the limits that the user requested? This would be useful when, say, storing metadata about histograms, since the data actually in the histogram is likely more interesting than the particular subset of values that were initially requested as trackable.
Strawman:
configured_low()
for what the user requested when creating the histogramactual_low()
for what the histogram can supportconfigured_high()
,actual_high()
The text was updated successfully, but these errors were encountered: