[Telemetry] Snapshot collection may skip days #142058
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Telemetry
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
When shipping Snapshot telemetry from the server, we check if we should send telemetry [every 12h].
This approach may miss some days without sending telemetry. Here's an scenario that explains it:
Why could it have 21:01Z as the last time it sent telemetry?
a. It takes time to generate the telemetry report, and we store the
lastReportedAt
date when we successfully report the data.b. Browsers may send the report if the server didn't. Since the server checks every 12h, there are high chances that the browsers kick in. So it shifts when the data was sent.
Potential fix:
Have a smarter timer logic: instead of an interval based, set the timer to the
lastReportedAt
+ a random delay to avoid race conditions of multiple instances reporting at the same time.The text was updated successfully, but these errors were encountered: