-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(trie): metrics #6943
feat(trie): metrics #6943
Conversation
|
||
impl TrieRootMetrics { | ||
pub(crate) fn new(ty: TrieType) -> Self { | ||
Self::new_with_labels(&[("type", ty.as_str())]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally, we should cache this initialization, see #6730.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#6730 was impactful because metrics initialization was on a hot code path. not the case here, so i wouldn't worry too much
25e38ab
to
de036d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only nits
Description
Instrument root calculators with general trie metrics.