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

Method get

libs/orbit-essentials/src/metrics.rs:309–316  ·  view source on GitHub ↗
(&self, service_name: &str, labels: &HashMap<&str, &str>)

Source from the content-addressed store, hash-verified

307 }
308
309 fn get(&self, service_name: &str, labels: &HashMap<&str, &str>) -> f64 {
310 with_metrics_registry(service_name, |registry| {
311 registry
312 .counter_vec_mut(self.name(), self.labels(), self.help())
313 .with(labels)
314 .get()
315 })
316 }
317
318 fn inc(&self, service_name: &str, labels: &HashMap<&str, &str>) {
319 with_metrics_registry(service_name, |registry| {

Callers

nothing calls this directly

Implementers 1

metrics.rscore/station/impl/src/core/metrics.rs

Calls 6

with_metrics_registryFunction · 0.85
counter_vec_mutMethod · 0.80
getMethod · 0.45
nameMethod · 0.45
labelsMethod · 0.45
helpMethod · 0.45

Tested by

no test coverage detected