method ICounter.inc
ICounter.inc(
value?: number,
labels?: Readonly<Record<string, string>>
): void

Increments the counter.

Parameters

optional
value: number

The value to add (default 1)

optional
labels: Readonly<Record<string, string>>

Label values keyed by label name

Return Type

void

Usage

import { type ICounter } from "common/src/index.ts";