Closed Bug 1349165 Opened 7 years ago Closed 7 years ago

DevTools: complete documentation gaps for how to add telemetry to panels

Categories

(DevTools :: General, enhancement, P3)

enhancement

Tracking

(firefox55 fixed)

RESOLVED FIXED
Firefox 55
Tracking Status
firefox55 --- fixed

People

(Reporter: sole, Assigned: sole)

References

Details

Attachments

(1 file)

There's some documentation in https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/telemetry.js but it is missing crucial parts such as the need to request a data review from the data team. This bug aims to fill in these gaps by documenting this on the docs folder.

We can then point people to this file each time telemetry is required for a new functionality.
Priority: -- → P3
Summary: Devtools: complete documentation gaps for how to add telemetry to panels → DevTools: complete documentation gaps for how to add telemetry to panels
Comment on attachment 8850501 [details]
Bug 1349165 - DevTools: complete documentation gaps for how to add telemetry to panels.

https://reviewboard.mozilla.org/r/123100/#review125412

You might want to add an entry in SUMMARY.md too so it can be seen in the table of contents when we generate the gitbook out of our docs.

::: devtools/docs/frontend/telemetry.md:85
(Diff revision 1)
> +```
> +
> +... or closing:
> +
> +```javascript
> +this._telemetry.toolOpened("mytoolname");

I think you meant `toolClosed` here

::: devtools/docs/frontend/telemetry.md:152
(Diff revision 1)
> +
> +Go to [about:telemetry](about:telemetry) to see stats relating to your local instance.
> +
> +### Global data
> +
> +Data aggregated from large groups of Firefox users is available at [telemetry.mozilla.org](https://telemetry.mozilla.org). 

nit: mozreview sees a trailing whitespace at the end of this line.
Attachment #8850501 - Flags: review?(pbrosset) → review+
Comment on attachment 8850501 [details]
Bug 1349165 - DevTools: complete documentation gaps for how to add telemetry to panels.

https://reviewboard.mozilla.org/r/123100/#review125412

Done too

> I think you meant `toolClosed` here

Fixed!

> nit: mozreview sees a trailing whitespace at the end of this line.

fixed too
Comment on attachment 8850501 [details]
Bug 1349165 - DevTools: complete documentation gaps for how to add telemetry to panels.

https://reviewboard.mozilla.org/r/123100/#review125488

Thanks, looks comprehensive to me! :)

Should `telemetry.js` have a comment that points to these docs?
Attachment #8850501 - Flags: review?(jryans) → review+
Comment on attachment 8850501 [details]
Bug 1349165 - DevTools: complete documentation gaps for how to add telemetry to panels.

https://reviewboard.mozilla.org/r/123100/#review125488

OMG Yes! I meant to remove the comments in telemetry.js and point them to this file - let me address that before landing. Thanks!
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/59db25d0260b
DevTools: complete documentation gaps for how to add telemetry to panels. r=jryans,pbro
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/59db25d0260b
Status: NEW → 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: