PSA: New (mozilla-only) WebExtension API for Telemetry

Georg Fritzsche gfritzsche at mozilla.com
Tue Aug 28 15:14:57 UTC 2018


While we have various Telemetry APIs for different use-cases, we did not
have one for Mozillas own WebExtensions. As such, there was no great way to
add Telemetry to them.
As of Firefox 63, there is now a WebExtension API for Telemetry
<https://searchfox.org/mozilla-central/rev/55da592d85c2baf8d8818010c41d9738c97013d2/toolkit/components/extensions/schemas/telemetry.json#87>,
available to Mozilla WebExtensions only through *browser.telemetry*. Cheers
go to Jared Hirsch, who made this happen
<https://bugzilla.mozilla.org/show_bug.cgi?id=1280234>!

This makes a big part of the existing Telemetry API
<https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/collection/index.html>
available, specifically:
- recording & registering scalars
- recording & registering events
- submitting custom pings

This extends our Firefox Telemetry APIs to now be available to:
- Privileged Firefox JavaScript through nsITelemetry
<https://searchfox.org/mozilla-central/source/toolkit/components/telemetry/nsITelemetry.idl>
plus submitting custom pings
<https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/collection/custom-pings.html>
- C++ code through Telemetry.h
<https://searchfox.org/mozilla-central/source/toolkit/components/telemetry/Telemetry.h>
- WebExtensions through browser.telemetry
<https://searchfox.org/mozilla-central/rev/55da592d85c2baf8d8818010c41d9738c97013d2/toolkit/components/extensions/schemas/telemetry.json#87>
- Specific in-product Mozilla websites through Hybrid Content Telemetry
<https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/collection/hybrid-content.html>

As always, please do reach out if you have any questions or concerns. You
can find us in #telemetry on IRC, #fx-metrics on Slack and the fx-data-dev
<https://mail.mozilla.org/listinfo/fx-data-dev> mailing list.

Your Firefox Telemetry Team
(:gfritzsche, :Dexter, :chutten, :janerik)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/firefox-dev/attachments/20180828/2f4b494a/attachment.html>


More information about the firefox-dev mailing list