22 lines
485 B
TypeScript
22 lines
485 B
TypeScript
import type { IMetrics, MetricAttributeValue } from "./metrics.interface";
|
|
|
|
export class NoopMetrics implements IMetrics {
|
|
counter(
|
|
_name: string,
|
|
_value?: number,
|
|
_attributes?: Record<string, MetricAttributeValue>,
|
|
): void {}
|
|
|
|
histogram(
|
|
_name: string,
|
|
_value: number,
|
|
_attributes?: Record<string, MetricAttributeValue>,
|
|
): void {}
|
|
|
|
gauge(
|
|
_name: string,
|
|
_value: number,
|
|
_attributes?: Record<string, MetricAttributeValue>,
|
|
): void {}
|
|
}
|