We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5456281 commit d36d8c3Copy full SHA for d36d8c3
crates/database/src/metrics.rs
@@ -907,12 +907,13 @@ register_convex_histogram!(
907
);
908
pub fn compaction_build_one_timer(search_type: SearchType) -> StatusTimer {
909
let mut timer = StatusTimer::new(&COMPACTION_BUILD_ONE_SECONDS);
910
- timer.replace_label(UNKNOWN_COMPACTION_LABEL.clone(), search_type.tag());
+ timer.add_label(search_type.tag());
911
+ timer.add_label(UNKNOWN_COMPACTION_LABEL.clone());
912
timer
913
}
914
915
pub fn finish_compaction_timer(mut timer: StatusTimer, reason: CompactionReason) {
- timer.add_label(reason.metric_label());
916
+ timer.replace_label(UNKNOWN_COMPACTION_LABEL.clone(), reason.metric_label());
917
timer.finish();
918
919
0 commit comments