Replies: 1 comment 4 replies
-
Definitely a helper utility that would live outside of the core types/macros. Something we could easily add to My main question would be: are you thinking about this from a call overhead standpoint, or an amount-of-data-recorded-and-sent standpoint? (or something else?) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wondered whether it would be within the scope of this crate to provide an API where metric recordings were randomly sampled, i.e. say only 10% of histogram records actually go through as a mechanism for saving performance on hot codepaths whilst retaining representative data. I am imagining
histogram!(...).record_p10(...)
or perhaps with the particular percentile passed as an argument.This could very easily be implemented on the users side and perhaps should be left at that.
Beta Was this translation helpful? Give feedback.
All reactions