MCPcopy Create free account
hub / github.com/dfinity/orbit / remove_counter_vec

Method remove_counter_vec

libs/orbit-essentials/src/metrics.rs:82–88  ·  view source on GitHub ↗

Removes a counter vec metric with the given name.

(&mut self, name: &str)

Source from the content-addressed store, hash-verified

80
81 /// Removes a counter vec metric with the given name.
82 pub fn remove_counter_vec(&mut self, name: &str) {
83 if let Some(counter) = self.metric_counter_vecs.remove(name) {
84 self.registry
85 .unregister(Box::new(counter))
86 .expect("Failed to unregister counter vec");
87 }
88 }
89
90 /// Returns a counter metric with the given name and helper message that explains what
91 /// the counter is measuring or tracking.

Callers 1

test_remove_counter_vecFunction · 0.80

Calls 1

removeMethod · 0.45

Tested by 1

test_remove_counter_vecFunction · 0.64