Closed
Bug 1353307
Opened 8 years ago
Closed 8 years ago
Add main process start time to sync ping
Categories
(Firefox :: Sync, enhancement, P2)
Firefox
Sync
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.
Comment 2•8 years ago
|
||
(In reply to Georg Fritzsche [:gfritzsche] from comment #1)
> Heads-up.
Head's up, thx :)
Flags: needinfo?(markh)
Updated•8 years ago
|
Priority: -- → P2
Updated•8 years ago
|
Assignee: nobody → eoger
| Comment hidden (mozreview-request) |
Comment 4•8 years ago
|
||
| mozreview-review | ||
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+
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•8 years ago
|
Attachment #8868302 -
Flags: review?(gfritzsche)
| Reporter | ||
Comment 7•8 years ago
|
||
| mozreview-review | ||
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+
| Reporter | ||
Comment 8•8 years ago
|
||
(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)
Comment 10•8 years ago
|
||
Georg, thanks for raising this - do you have a reference to the main ping format (or code that implements it)?
Flags: needinfo?(gfritzsche)
| Reporter | ||
Comment 11•8 years ago
|
||
Docs are on sessionStartDate & subsessionStartDate here:
https://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/data/main-ping.html
Code:
https://dxr.mozilla.org/mozilla-central/rev/5bc1c758ab57c1885dceab4e7837e58af27b998c/toolkit/components/telemetry/TelemetrySession.jsm#1055-1056
Flags: needinfo?(gfritzsche)
| Comment hidden (mozreview-request) |
Comment 13•8 years ago
|
||
Pushed by eoger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/df452af1e39a
Add main process start time to sync ping. r=gfritzsche,markh
Comment 14•8 years ago
|
||
| bugherder | ||
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.
Description
•