Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/tools / / observeHistogram
Function: observeHistogram()
ts
function observeHistogram(
name,
value,
labels?): void;Defined in: packages/tools/src/audit/counters.ts:83
Record an observation in a histogram. Stored as the raw observation list so consumers can compute their own quantiles; the host application is responsible for periodic histogram aggregation.
Parameters
| Parameter | Type |
|---|---|
name | string |
value | number |
labels? | Readonly<Record<string, string | number | boolean>> |
Returns
void