method IMetricsService.counter
IMetricsService.counter(
name: string,
options?: MetricOptions
): ICounter

Gets or creates a counter.

Parameters

name: string

Metric name

optional
options: MetricOptions

Optional configuration

Return Type

The counter instance

Usage

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