<div dir="ltr"><div>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.</div><div>As of Firefox 63, there is now a <a href="https://searchfox.org/mozilla-central/rev/55da592d85c2baf8d8818010c41d9738c97013d2/toolkit/components/extensions/schemas/telemetry.json#87">WebExtension API for Telemetry</a>, available to Mozilla WebExtensions only through <i>browser.telemetry</i>. Cheers go to Jared Hirsch, who <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1280234">made this happen</a>!</div><div><br></div><div>This makes a big part of the existing <a href="https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/collection/index.html">Telemetry API</a> available, specifically:</div><div>- recording & registering scalars</div><div>- recording & registering events</div><div>- submitting custom pings</div><div><br></div><div>This extends our Firefox Telemetry APIs to now be available to:</div><div>- Privileged Firefox JavaScript through <a href="https://searchfox.org/mozilla-central/source/toolkit/components/telemetry/nsITelemetry.idl">nsITelemetry</a> plus <a href="https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/collection/custom-pings.html">submitting custom pings</a><br></div><div>- C++ code through <a href="https://searchfox.org/mozilla-central/source/toolkit/components/telemetry/Telemetry.h">Telemetry.h</a></div><div>- WebExtensions through <a href="https://searchfox.org/mozilla-central/rev/55da592d85c2baf8d8818010c41d9738c97013d2/toolkit/components/extensions/schemas/telemetry.json#87">browser.telemetry</a><br></div><div>- Specific in-product Mozilla websites through <a href="https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/collection/hybrid-content.html">Hybrid Content Telemetry</a></div><div><br></div><div>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 <a href="https://mail.mozilla.org/listinfo/fx-data-dev">fx-data-dev</a> mailing list.<br></div><div><br></div><div>Your Firefox Telemetry Team</div><div>(:gfritzsche, :Dexter, :chutten, :janerik)<br></div></div>