Vereda
    Preparing search index...

    Interface MetricsSink

    Pluggable sink for vereda metrics. Implement this interface to wire vereda into OpenTelemetry, Prometheus, Datadog, or any other metrics backend. The client calls these methods at well-defined lifecycle points; all calls are synchronous and non-blocking.

    interface MetricsSink {
        counter(name: string, value: number, tags?: MetricTags): void;
        histogram(name: string, value: number, tags?: MetricTags): void;
        gauge(name: string, value: number, tags?: MetricTags): void;
    }
    Index
    • Monotonically increasing counter (e.g. total requests, total retries).

      Parameters

      • name: string
      • value: number
      • Optionaltags: MetricTags

      Returns void

    • Latency distribution (e.g. request duration in ms).

      Parameters

      • name: string
      • value: number
      • Optionaltags: MetricTags

      Returns void

    • Point-in-time gauge (e.g. current in-flight requests, queue depth).

      Parameters

      • name: string
      • value: number
      • Optionaltags: MetricTags

      Returns void