import type { Metrics, MetricTags } from "./types.js";

/** Used when DD_METRICS_ENABLED is false (dev/test) or the recorder fails to init. */
export class NoopMetrics implements Metrics {
  increment(_name: string, _tags?: MetricTags): void {}
  count(_name: string, _value: number, _tags?: MetricTags): void {}
  gauge(_name: string, _value: number, _tags?: MetricTags): void {}
  histogram(_name: string, _value: number, _tags?: MetricTags): void {}
  timing(_name: string, _ms: number, _tags?: MetricTags): void {}
}
