Closed
Bug 1271378
Opened 9 years ago
Closed 9 years ago
Report session times in core ping
Categories
(Firefox for iOS :: Telemetry, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bnicholson, Assigned: bnicholson)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8751835 -
Flags: review?(sarentz)
Attachment #8751835 -
Flags: review?(mark.finkle)
| Assignee | ||
Comment 2•9 years ago
|
||
This sends an array of usage times with the core ping. A single usage time is defined as the time, in seconds, the application has been in the foreground.
One useful metric this can help capture is determining how long users are using the app before they uninstall. Since sending the ping on each application foreground isn't sufficient to measure a user who only uses the application once, this PR changes the core ping triggers. Rather than sending the core ping on each application foreground, we'll now send the core ping to be sent after 1) the first application startup, and 2) each application background.
Sending a ping on each background allows us to include the usage interval for that session. Sending a ping on the first run (or more specifically, first run with this patch applied) gives us a soon-as-possible data point that we can use to uniquely identify a user (so they'll at least be on the map after a crash-then-uninstall scenario). Other than the initial launch, I can't think of a reason we'd want to send pings on app startup/foreground, but happy to hear any arguments.
The usage array works by appending the current usage time to the stored array, then clearing the stored array after a successful ping. That means the very first ping will have an empty usage array on the first run, and all subsequent pings will contain at least one value in the array. Generally, the array will have just one item since pings will usually succeed.
Comment 3•9 years ago
|
||
Georg and Michael talked a bit more about saving session times, since the spec was not what we thought it was. I think we did settle on using "usage" and an array of times only.
Check with mcomella for more details, and you should probably redirect the review to him or someone else.
| Assignee | ||
Updated•9 years ago
|
Attachment #8751835 -
Flags: review?(mark.finkle) → review?(michael.l.comella)
Comment on attachment 8751835 [details] [review]
Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1811
This looks on the right track if we're okay with potentially double-counting session data (my naive thoughts think it'd be better to drop data rather than double-count though).
One thing we need to resolve before a proper r+ though: data format (https://bugzilla.mozilla.org/show_bug.cgi?id=1243595#c2 seemed to mostly resolve it, but do you feel we should discuss this more?).
Attachment #8751835 -
Flags: review?(michael.l.comella) → feedback+
| Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8751835 [details] [review]
Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1811
Updated the PR to tally session counts/durations instead of an array of times. Not requesting review yet since we'll try to keep the iOS and Android ping version numbers in sync, and this is among the last of the changes Android is making.
Attachment #8751835 -
Flags: review?(sarentz)
| Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8751835 [details] [review]
Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1811
Think this is ready for re-review now. Note that the PR currently includes bug 1271380, so just look at the last commit.
Attachment #8751835 -
Flags: review?(sarentz)
Attachment #8751835 -
Flags: review?(michael.l.comella)
Attachment #8751835 -
Flags: feedback+
Comment on attachment 8751835 [details] [review]
Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1811
Seems reasonable to me, with my comments taken into account.
Attachment #8751835 -
Flags: review?(michael.l.comella) → review+
Comment 8•9 years ago
|
||
Comment on attachment 8751835 [details] [review]
Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1811
LGTM
Attachment #8751835 -
Flags: review?(sarentz) → review+
| Assignee | ||
Comment 9•9 years ago
|
||
status-fxios-v5.0:
--- → fixed
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•