Skip to main content

Meter

@retinue/monorepo


@retinue/monorepo / backend/src / Meter

Interface: Meter

Defined in: backend/src/telemetry/index.ts:152

Methods​

counter()​

counter(name, options?): MetricRecorder

Defined in: backend/src/telemetry/index.ts:154

Monotonic count — requests, errors, runs.

Parameters​

name​

string

options?​
description?​

string

unit?​

string

Returns​

MetricRecorder


gauge()​

gauge(name, options?): MetricRecorder

Defined in: backend/src/telemetry/index.ts:158

A point-in-time value — queue depth. Recorded, not accumulated.

Parameters​

name​

string

options?​
description?​

string

unit?​

string

Returns​

MetricRecorder


histogram()​

histogram(name, options?): MetricRecorder

Defined in: backend/src/telemetry/index.ts:156

A distribution — latency, duration, wait time. Percentiles are the only useful form of these.

Parameters​

name​

string

options?​
description?​

string

unit?​

string

Returns​

MetricRecorder