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.
Maximum number of events to keep in memory while offline.
Cleanup function to uninstall the queue wrapper and restore original telemetry functions.
Uninstalls the queue wrapper and restores original addAction/addError functions.
void
import { installTelemetryQueue } from "datadog-ux-utils/telemetry";installTelemetryQueue(300); // keep up to 300 events while offline Copy
import { installTelemetryQueue } from "datadog-ux-utils/telemetry";installTelemetryQueue(300); // keep up to 300 events while offline
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.