What is the Persistence Exporter
mainThe Persistence Exporter is an exporter decorator designed for environments where stable export cannot be guaranteed (e.g., mobile apps with intermittent network connectivity).
Instead of being a standalone exporter, it wraps an existing exporter. It works by:
- Asynchronously serializing and writing exported data to disk at a specified path.
- Asynchronously picking up that persisted data, deserializing it, and forwarding it to the original (decorated) exporter.
This ensures that telemetry data collected while offline can be exported later, even after an app has been terminated and relaunched.