Skip to content

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

ParameterType
namestring
valuenumber
labels?Readonly<Record&lt;string, string | number | boolean&gt;>

Returns

void

Stable