Skip to content

MetricsSink

Defined in: src/core/metrics.ts:13

Pluggable sink for vereda metrics. Implement this interface to wire vereda into OpenTelemetry, Prometheus, Datadog, or any other metrics backend. The client calls these methods at well-defined lifecycle points; all calls are synchronous and non-blocking.

counter(name, value, tags?): void

Defined in: src/core/metrics.ts:15

Monotonically increasing counter (e.g. total requests, total retries).

string

number

MetricTags

void


histogram(name, value, tags?): void

Defined in: src/core/metrics.ts:17

Latency distribution (e.g. request duration in ms).

string

number

MetricTags

void


gauge(name, value, tags?): void

Defined in: src/core/metrics.ts:19

Point-in-time gauge (e.g. current in-flight requests, queue depth).

string

number

MetricTags

void