[remote-dbg-next] Telemetry: record runtime updates
Categories
(DevTools :: about:debugging, enhancement, P1)
Tracking
(firefox67 fixed)
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files, 4 obsolete files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
2.80 KB,
text/plain
|
chutten
:
data-review+
|
Details |
We should record events when the device/runtime list is updated. This should include:
- when a device is detected,
- when a new runtime is detected
- when a runtime disappears
- when a device disappears
- when a connection to a runtime is established
- when a connection to a runtime is lost
The events should give us an idea of how frequently the list of devices is updated, and should also give insights about the type of devices available to the user. I don't think we can record complex properties (arrays of objects? even if easily serializable?).
One option would be to serialize such an object, but it would probably be hard to query and reuse from amplitude. So alternatively (or additionally) we could have as properties:
- the total number of devices
- number of devices by type
- number of devices by runtime type (GeckoView? Fennec?)
- number of devices by connection status (Connected? Not Connected)
Or we can record one event per device every time the list is updated. E.g. something like device_available, with some basic properties about the device (connection type, runtime, connected...)
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 1•7 years ago
|
||
Harald, before I ask for data review, can you check if you would like more data to be logged alongside those events. For now I just log:
- connection_type: how the device was connected ("usb", "network" or "wifi")
- device_name: the manufacturer's device name in case of phones connected via USB (eg "Moto G(4)")
- runtime_name: the name of the detected runtime (eg "Firefox", "Firefox Nightly")
Thanks!
Assignee | ||
Comment 2•7 years ago
|
||
Will ask for r? from janerik once product has approved the data collected here.
Assignee | ||
Comment 3•7 years ago
|
||
Updated information about the extras logged for device_
events.
Assignee | ||
Comment 4•7 years ago
|
||
Added the runtime id to the list of information collected for runtime events.
Comment 5•7 years ago
|
||
Assignee | ||
Comment 6•7 years ago
|
||
Applied suggestions from Harald, requesting data-review.
Comment 7•7 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Thanks for the review! I kept a runtime_id data collection to allow us to link together events occurring on a given runtime (and the runtime name is not 1/ specific enough, 2/ always available), but this new "runtime_id" is just a random unique id that should not leak any user information (unique for a given about:debugging session).
I will update the patch so that you and jan-erik can check the implementation as well. Let me know if this approach is ok from a data collection perspective.
Comment 9•6 years ago
|
||
Assignee | ||
Comment 10•6 years ago
|
||
(In reply to Chris H-C :chutten from comment #9)
Comment on attachment 9044628 [details]
data_review_1521507_v5.txtA random id would be perfectly fine from a data collection POV, though I'd
love to take a look at the implementation as I give review.
Sure! flagged you for r? on Phabricator.
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
bugherder |
Description
•