diff --git a/network/protocol/src/metrics.rs b/network/protocol/src/metrics.rs index 3ecacfa1a2..4b0993ddea 100644 --- a/network/protocol/src/metrics.rs +++ b/network/protocol/src/metrics.rs @@ -366,6 +366,11 @@ impl Drop for ProtocolMetricCache { let _ = m.rmsg_ob.remove_label_values(&[&cid, &s, &finished]); let _ = m.rmsg_ob.remove_label_values(&[&cid, &s, &dropped]); } + let _ = m.ping.remove_label_values(&[&cid]); + let _ = m.sdata_frames_t.remove_label_values(&[&cid]); + let _ = m.sdata_frames_b.remove_label_values(&[&cid]); + let _ = m.rdata_frames_t.remove_label_values(&[&cid]); + let _ = m.rdata_frames_b.remove_label_values(&[&cid]); } }