Skip to content

NoopMetricsRegistry

Defined in: src/metrics/Metrics.ts:356

Zero-cost registry that throws nothing away but records nothing. Used as the default on ActorSystem.metrics so instrumentation sprinkled through the codebase pays nothing when metrics aren’t enabled.

new NoopMetricsRegistry(): NoopMetricsRegistry

NoopMetricsRegistry

clear(): void

Defined in: src/metrics/Metrics.ts:361

Wipe the registry — primarily for tests.

void

MetricsRegistry.clear


collect(): readonly MetricSample[]

Defined in: src/metrics/Metrics.ts:360

Snapshot every series as a flat list of MetricSamples.

readonly MetricSample[]

MetricsRegistry.collect


counter(): Counter

Defined in: src/metrics/Metrics.ts:357

Get-or-create a counter family. Same (name, help) returns the same family across calls; labels selects (or creates) a child series within it.

Counter

MetricsRegistry.counter


gauge(): Gauge

Defined in: src/metrics/Metrics.ts:358

Gauge

MetricsRegistry.gauge


histogram(): Histogram

Defined in: src/metrics/Metrics.ts:359

Histogram

MetricsRegistry.histogram