Closed Bug 1353307 Opened 8 years ago Closed 8 years ago

Add main process start time to sync ping

Categories

(Firefox :: Sync, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 55
Tracking Status
firefox55 --- fixed

People

(Reporter: gfritzsche, Assigned: eoger)

References

Details

Attachments

(1 file)

Per bug 1349324, the sync ping should have the main process start time as a data point. We ended up going for hourly precision here for now.
Heads-up.
Flags: needinfo?(markh)
(In reply to Georg Fritzsche [:gfritzsche] from comment #1) > Heads-up. Head's up, thx :)
Flags: needinfo?(markh)
Priority: -- → P2
Assignee: nobody → eoger
Comment on attachment 8868302 [details] Bug 1353307 - Add main process start time to sync ping. https://reviewboard.mozilla.org/r/139890/#review143706 LGTM, thanks. Can you please fix the documentation and request review from Georg? ::: toolkit/components/telemetry/docs/data/sync-ping.rst:25 (Diff revision 1) > version: 1, > discarded: <integer count> // Number of syncs discarded -- left out if zero. > why: <string>, // Why did we submit the ping? Either "shutdown", "schedule", or "idchanged". > uid: <string>, // Hashed FxA unique ID, or string of 32 zeros. If this changes between syncs, the payload is submitted. > deviceID: <string>, // Hashed FxA Device ID, hex string of 64 characters, not included if the user is not logged in. If this changes between syncs, the payload is submitted. > + sessionStartTime: <integer milliseconds since epoch>, // Session start time. This should document the 1-hour granularity we impose.
Attachment #8868302 - Flags: review?(markh) → review+
Attachment #8868302 - Flags: review?(gfritzsche)
Comment on attachment 8868302 [details] Bug 1353307 - Add main process start time to sync ping. https://reviewboard.mozilla.org/r/139890/#review145426 ::: toolkit/components/telemetry/docs/data/sync-ping.rst:25 (Diff revision 3) > version: 1, > discarded: <integer count> // Number of syncs discarded -- left out if zero. > why: <string>, // Why did we submit the ping? Either "shutdown", "schedule", or "idchanged". > uid: <string>, // Hashed FxA unique ID, or string of 32 zeros. If this changes between syncs, the payload is submitted. > deviceID: <string>, // Hashed FxA Device ID, hex string of 64 characters, not included if the user is not logged in. If this changes between syncs, the payload is submitted. > + sessionStartTime: <integer milliseconds since epoch>, // Session start time (hourly precision). I don't remember the whole conversation we had on this. Is it sufficient to have the "start time" here? Or does this need a "start date"?
Attachment #8868302 - Flags: review?(gfritzsche) → review+
(In reply to Georg Fritzsche [:gfritzsche] from comment #7) > Comment on attachment 8868302 [details] > Bug 1353307 - Add main process start time to sync ping. > > https://reviewboard.mozilla.org/r/139890/#review145426 > > ::: toolkit/components/telemetry/docs/data/sync-ping.rst:25 > (Diff revision 3) > > version: 1, > > discarded: <integer count> // Number of syncs discarded -- left out if zero. > > why: <string>, // Why did we submit the ping? Either "shutdown", "schedule", or "idchanged". > > uid: <string>, // Hashed FxA unique ID, or string of 32 zeros. If this changes between syncs, the payload is submitted. > > deviceID: <string>, // Hashed FxA Device ID, hex string of 64 characters, not included if the user is not logged in. If this changes between syncs, the payload is submitted. > > + sessionStartTime: <integer milliseconds since epoch>, // Session start time (hourly precision). > > I don't remember the whole conversation we had on this. > Is it sufficient to have the "start time" here? > Or does this need a "start date"?
Flags: needinfo?(ssuh)
Truncated millis since epoch then start time should be fine from a computational perspective, of course, but is there a reason to choose this format over the ISO timestamp that we used in the main ping? If not, I think the latter would be preferable for the sake of consistency.
Flags: needinfo?(ssuh)
Georg, thanks for raising this - do you have a reference to the main ping format (or code that implements it)?
Flags: needinfo?(gfritzsche)
Pushed by eoger@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/df452af1e39a Add main process start time to sync ping. r=gfritzsche,markh
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: