datadog-ux-utils Documentation - v1.0.0
    Preparing search index...

    Function installTelemetryQueue

    • Installs the in-memory offline telemetry queue.

      Buffers telemetry events (actions/errors) in memory while offline and flushes them when connectivity returns. Does not persist to localStorage.

      Parameters

      • maxBufferedEvents: number = 200

        Maximum number of events to keep in memory while offline.

      Returns () => void

      Cleanup function to uninstall the queue wrapper and restore original telemetry functions.

        • (): void
        • Uninstalls the queue wrapper and restores original addAction/addError functions.

          Returns void

          void

      import { installTelemetryQueue } from "datadog-ux-utils/telemetry";

      installTelemetryQueue(300); // keep up to 300 events while offline