@pwngh/economy-lab
    Preparing search index...

    Interface Meter

    Metrics. Both methods are called synchronously on the request path, so they must not throw or block — buffer and ship out of band. count accumulates; observe records one point-in-time sample (the core observes wall times in milliseconds and backlog gauges as row counts).

    interface Meter {
        count(name: string, n: number, tags?: Record<string, string>): void;
        observe(name: string, value: number, tags?: Record<string, string>): void;
    }
    Index
    • Parameters

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

      Returns void

    • Parameters

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

      Returns void