Skip to content

device/telemetry: consider storing timestamps with samples #877

@snormore

Description

@snormore

We should consider storing timestamps the RTT samples, or some indication of time so that we can derive one more precisely.

Currently, if a device stops submitting for a period and later resumes, the data appears continuous when interpolated from the sample count and submission interval in the account header. This gives a misleading impression in two ways: first, it looks like the device was reporting the entire time; second, it appears as if the device is no longer submitting current samples, since the resumed data seems to be backfilled into the past rather than following a visible gap. As a result, gaps in the timeseries are hidden, and it's impossible to distinguish timely data from delayed submissions.

I'm not sure if it affects rewards, but it was pretty confusing in Grafana on the timeseries after #876 was resolved.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions