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

Method inc

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

Source from the content-addressed store, hash-verified

316 }
317
318 fn inc(&self, service_name: &str, labels: &HashMap<&str, &str>) {
319 with_metrics_registry(service_name, |registry| {
320 registry
321 .counter_vec_mut(self.name(), self.labels(), self.help())
322 .with(labels)
323 .inc();
324 });
325 }
326}
327
328pub trait ApplicationCounterMetric<Model>: ApplicationMetric<Model>

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
incMethod · 0.45
nameMethod · 0.45
labelsMethod · 0.45
helpMethod · 0.45

Tested by

no test coverage detected