method MetricsService.prototype.counter
MetricsService.prototype.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 { MetricsService } from "metrics-plugin/src/index.ts";