@qualithm/arrow-flight-sql-js - v0.4.3
    Preparing search index...

    Type Alias MetricsHandler

    Interface for handling metrics events.

    Implement this interface to integrate with your observability backend.

    type MetricsHandler = {
        close?: () => void | Promise<void>;
        recordCounter: (event: CounterEvent) => void;
        recordGauge: (event: GaugeEvent) => void;
        recordOperation: (event: MetricEvent) => void;
    }

    Implemented by

    Index

    Properties

    close?: () => void | Promise<void>

    Called when the client is closed, allowing cleanup

    recordCounter: (event: CounterEvent) => void

    Record a counter increment

    recordGauge: (event: GaugeEvent) => void

    Record a gauge value

    recordOperation: (event: MetricEvent) => void

    Record a timed operation metric