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.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NoopMetricsRegistry():
NoopMetricsRegistry
Returns
Section titled “Returns”NoopMetricsRegistry
Methods
Section titled “Methods”clear()
Section titled “clear()”clear():
void
Defined in: src/metrics/Metrics.ts:361
Wipe the registry — primarily for tests.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”collect()
Section titled “collect()”collect(): readonly
MetricSample[]
Defined in: src/metrics/Metrics.ts:360
Snapshot every series as a flat list of MetricSamples.
Returns
Section titled “Returns”readonly MetricSample[]
Implementation of
Section titled “Implementation of”counter()
Section titled “counter()”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.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”gauge()
Section titled “gauge()”gauge():
Gauge
Defined in: src/metrics/Metrics.ts:358
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”histogram()
Section titled “histogram()”histogram():
Histogram
Defined in: src/metrics/Metrics.ts:359