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.
Persistent queue configuration (see PersistentQueueOptions).
Uninstall function to remove listeners and hooks.
Uninstalls the persistent telemetry queue and removes listeners/hooks. Leaves stored events intact in localStorage.
void
import { installPersistentTelemetryQueue } from "datadog-ux-utils/telemetry";installPersistentTelemetryQueue({ maxBuffered: 600, storageKey: "dd_offline_queue_v1", byteCap: 2_000_000, flushOnInit: true, writeDebounceMs: 120,}); Copy
import { installPersistentTelemetryQueue } from "datadog-ux-utils/telemetry";installPersistentTelemetryQueue({ maxBuffered: 600, storageKey: "dd_offline_queue_v1", byteCap: 2_000_000, flushOnInit: true, writeDebounceMs: 120,});
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.