Hey all, just wanted to give an update on UI Telemetry and provide some 
pointers if you want to get involved!

Background:
We’ve wanted to collect UI-oriented telemetry for a while so that we can get an 
idea of how people interact with our UI changes. With bug 932092  we landed a 
simple framework to add UI Telemetry probes. The goal was to make it easy to 
collect contextualized telemetry on UI interactions. We do this by making it 
easy to 1) start and stop sessions to track UI interactions with duration, and 
2) add events that will be contextualized by any currently running sessions.

The first probes (home panels) have landed (bug 968308), so you can take a look 
there for some in-tree code.

Writing probes:
Adding a probe generally involves creating a Session probe (or using an 
existing one) and adding Event probes.

For sessions, this is as simple as calling:
Telemetry.startUISession(String sessionName)
Telemetry.stopUISession(String sessionName, String reason [optional])

Events:
Telemetry.sendUIEvent(String action, String method [optional], long timestamp 
[optional], String extras [optional])

Look at the guidelines for probe naming and the intent behind these choices 
[1]. These are now in the tree, so make sure that if you’re reviewing changes 
to the UI Telemetry API that these docs are also kept up to date.

Getting involved:
The P1 telemetry bugs all block the UI Telemetry metabug (bug 942279). Want to 
instrument Sharing? Curious about bookmarking? Need to know how people actually 
use the sync banner? This and more, in the metabug!

Feel free to ask :sola, :rnewman, or myself (:liuche) for more information, 
reviews, or feedback!

[1] https://wiki.mozilla.org/Mobile/Fennec/Android/UITelemetry#Technical_details
_______________________________________________
mobile-firefox-dev mailing list
mobile-firefox-dev@mozilla.org
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to