mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Canonicalization metrics improvements (#5705)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
@ -20,7 +20,7 @@ impl DurationsRecorder {
|
||||
/// `action` label.
|
||||
pub(crate) fn record_duration(&mut self, action: Action, duration: Duration) {
|
||||
self.actions.push((action, duration));
|
||||
Metrics::new_with_labels(&[("action", format!("{action:?}"))]).duration.record(duration);
|
||||
Metrics::new_with_labels(&[("action", action.as_str())]).duration.record(duration);
|
||||
self.latest = Some(self.start.elapsed());
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user