datadog-ux-utils Documentation - v1.0.0
    Preparing search index...
    • Installs the persistent offline telemetry queue.

      Buffers telemetry events (actions/errors) while offline, persists to localStorage, and flushes when connectivity returns. Safe to call multiple times. Returns an uninstall function.

      Parameters

      Returns () => void

      Uninstall function to remove listeners and hooks.

        • (): void
        • Uninstalls the persistent telemetry queue and removes listeners/hooks. Leaves stored events intact in localStorage.

          Returns void

          void

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

      installPersistentTelemetryQueue({
      maxBuffered: 600,
      storageKey: "dd_offline_queue_v1",
      byteCap: 2_000_000,
      flushOnInit: true,
      writeDebounceMs: 120,
      });