method Counter.prototype.observe Counter.prototype.observe(value?: number,labels?: Readonly<Record<string, string>>): void Records an observation — equivalent to inc() for counters. Parameters optional value: number = 1 The value to add (default 1) optional labels: Readonly<Record<string, string>> Label values keyed by label name Return Type void