method IMetric.observe IMetric.observe(value?: number,labels?: Readonly<Record<string, string>>): void Records an observation. For counters the value is the increment (default 1); for gauges the new value; for histograms and summaries the observed sample. Parameters optional value: number The observed value optional labels: Readonly<Record<string, string>> Label values keyed by label name Return Type void