Closed Bug 1343501 Opened 8 years ago Closed 8 years ago

Log telemetry for devtools DOM panel

Categories

(DevTools :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox55 fixed)

RESOLVED FIXED
Firefox 55
Tracking Status
firefox55 --- fixed

People

(Reporter: sole, Assigned: sole)

References

Details

Attachments

(1 file)

Right now the DOM panel doesn't have its id registered in telemetry.js http://searchfox.org/mozilla-central/source/devtools/client/shared/telemetry.js - so each time that panel is opened it results in a 'custom' tool opened event as a result of this: http://searchfox.org/mozilla-central/rev/4039fb4c5833706f6880763de216974e00ba096c/devtools/client/shared/telemetry.js#216 The solution is to follow the instructions in telemetry.js to add a new histogram.
Assignee: nobody → sole
Attached patch bug-1343501.patch (deleted) — Splinter Review
Attachment #8843897 - Flags: review?(odvarko)
Comment on attachment 8843897 [details] [diff] [review] bug-1343501.patch Review of attachment 8843897 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. @jryans: can you please look at this too? Honza
Attachment #8843897 - Flags: feedback?(jryans)
The try looks good, I think this is ready to land. Let's see Ryan's feedback yet. Honza
Comment on attachment 8843897 [details] [diff] [review] bug-1343501.patch Review of attachment 8843897 [details] [diff] [review]: ----------------------------------------------------------------- Looks reasonable to me on the DevTools side, but you may need one change as I've noted below. In addition, new telemetry probes require a review from the data collection group. Once you're ready, set feedback? to bsmedberg, as documented on the telemetry page[1]. [1]: https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Adding_a_new_Telemetry_probe ::: toolkit/components/telemetry/Histograms.json @@ +7761,5 @@ > "releaseChannelCollection": "opt-out" > }, > + "DEVTOOLS_DOM_OPENED_COUNT": { > + "alert_emails": ["dev-developer-tools@lists.mozilla.org"], > + "expires_in_version": "never", I believe the Telemetry group no longer allows new probes with expires "never". I usually add ~10 to the current release, so you could put "65" here.
Attachment #8843897 - Flags: feedback?(jryans) → feedback+
Attachment #8843897 - Flags: review?(benjamin)
Argh, Bugzilla ate my comment! Thanks for the review and info links, jryans. I requested Benjamin's review as it seems a bit strange to me that we would track the usage of some panels without expiry and some others with it, and I couldn't find any mention to the allowed values for 'expires' in the documentation you linked. Not that I don't trust you, but I want to make sure we don't have to "renew" unnecessarily :-)
Comment on attachment 8843897 [details] [diff] [review] bug-1343501.patch Review of attachment 8843897 [details] [diff] [review]: ----------------------------------------------------------------- Looks good from my perspective, R+ Honza
Attachment #8843897 - Flags: review?(odvarko) → review+
Attachment #8843897 - Flags: review?(benjamin) → feedback?(benjamin)
I just realised Benjamin wants the *feedback* flag, not *review*. Benjamin, could you look and see if the proposed new probe looks fine? We want to track usage of a panel in DevTools, just as we are tracking for the other panels already. Thanks!
Bryan, for expires-never data collection we're looking for a commitment from somebody that you will actually be using the data permanently, or have it disabled if you're no longer using it. Are you the right person to make that commitment?
Flags: needinfo?(clarkbw)
Yes, I use these probes to track panel usage. This one would go into my panels dashboard view https://sql.telemetry.mozilla.org/dashboard/-devtools-panels with the others.
Flags: needinfo?(clarkbw)
Comment on attachment 8843897 [details] [diff] [review] bug-1343501.patch data-r=me
Attachment #8843897 - Flags: feedback?(benjamin) → feedback+
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/e939d2c1a8c1 Log telemetry for devtools DOM panel. r=Honza
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: