Anchorage API reference
    Preparing search index...

    Counters/histograms sink — any metrics client (StatsD, Prometheus push, OTel) can implement this.

    interface MetricsRecorder {
        increment(name: string, tags?: Record<string, string>): void;
        observe(name: string, value: number, tags?: Record<string, string>): void;
    }
    Index

    Methods

    • Increment a named counter with optional string tags.

      Parameters

      • name: string
      • Optionaltags: Record<string, string>

      Returns void

    • Observe a numeric value for a named metric with optional string tags.

      Parameters

      • name: string
      • value: number
      • Optionaltags: Record<string, string>

      Returns void