method Gauge.prototype.observe Gauge.prototype.observe(value: number,labels?: Readonly<Record<string, string>>): void Records an observation — equivalent to set() for gauges. Parameters value: number The new value optional labels: Readonly<Record<string, string>> Label values keyed by label name Return Type void