Closed Bug 1347552 Opened 7 years ago Closed 7 years ago

Add telemetry for the Layout panel

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox55 fixed)

RESOLVED FIXED
Firefox 55
Tracking Status
firefox55 --- fixed

People

(Reporter: gl, Assigned: gl)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Since this is a new panel, we need to add telemetry for it.
Blocks: 1347964
Assignee: nobody → gl
Status: NEW → ASSIGNED
Comment on attachment 8849112 [details]
Bug 1347552 - Add telemetry for the Layout Panel.

Sole, do you mind reviewing this change? I feel like your knowledge of telemetry is fresher than mine. Also, does this need an extra review for the new histogram?
Attachment #8849112 - Flags: review?(pbrosset) → review?(sole)
Sure!

Question for Gabriel: are you calling toolOpened anywhere? It looks from the diff that you added the histograms, but you didn't use them?

If you look at the instructions in https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/telemetry.js#27 it mentions this bit.

Also yes, you will need to request a data-review "feedback" flag as I did on this bug https://bugzilla.mozilla.org/show_bug.cgi?id=1343501#c8 - possibly also flag Bryan so he commits to using the data, otherwise the data group will not be happy about a "expires=never" histogram.

To catch potential errors on the Histograms.json which you modified, instead of repeatedly pushing to try, you can build locally (not using artifact builds or ./mach build faster). Otherwise the 'faster' building processes don't use the same Python script that is used to validate the json file. Save time now by compiling now instead of letting try tell you :)
(In reply to Soledad Penades [:sole] [:spenades] from comment #3)
> Sure!
> 
> Question for Gabriel: are you calling toolOpened anywhere? It looks from the
> diff that you added the histograms, but you didn't use them?
> 
> If you look at the instructions in
> https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/
> telemetry.js#27 it mentions this bit.
> 

Yes, this is done automatically in client/inspector/toolsidebar.js which is used to build the sidebars in the inspector.

> Also yes, you will need to request a data-review "feedback" flag as I did on
> this bug https://bugzilla.mozilla.org/show_bug.cgi?id=1343501#c8 - possibly
> also flag Bryan so he commits to using the data, otherwise the data group
> will not be happy about a "expires=never" histogram.
> 
> To catch potential errors on the Histograms.json which you modified, instead
> of repeatedly pushing to try, you can build locally (not using artifact
> builds or ./mach build faster). Otherwise the 'faster' building processes
> don't use the same Python script that is used to validate the json file.
> Save time now by compiling now instead of letting try tell you :)
Comment on attachment 8849112 [details]
Bug 1347552 - Add telemetry for the Layout Panel.

Needinfo'ing clarkbw for data commit
Data feedback from smedbergs
Flags: needinfo?(clarkbw)
Attachment #8849112 - Flags: feedback?(benjamin)
Comment on attachment 8849112 [details]
Bug 1347552 - Add telemetry for the Layout Panel.

https://reviewboard.mozilla.org/r/121944/#review124396

If you're calling toolOpened, then it looks good to me.
Attachment #8849112 - Flags: review?(sole) → review+
Comment on attachment 8849112 [details]
Bug 1347552 - Add telemetry for the Layout Panel.

https://reviewboard.mozilla.org/r/121944/#review124532
Attachment #8849112 - Flags: review+
Attachment #8849112 - Flags: feedback?(benjamin)
Pushed by gabriel.luong@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f12551f0027b
Add telemetry for the Layout panel. r=sole, bsmedberg
Pushed by gabriel.luong@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5656cc1c90f3
Part 2: Added missing alert_emails and bug_numbers fields to DEVTOOLS_LAYOUTVIEW_TIME_ACTIVE_SECONDS telemetry. r=me
Adding this to the Inspector panels query.  Thanks!
Flags: needinfo?(clarkbw)
https://hg.mozilla.org/mozilla-central/rev/f12551f0027b
https://hg.mozilla.org/mozilla-central/rev/5656cc1c90f3
Status: ASSIGNED → RESOLVED
Closed: 7 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: