Open Bug 1274005 Opened 6 years ago Updated 3 years ago
Add telemetry for Errors
There are a set of DOM errors that we emit using ErrorResult::ThrowTypeError(). The list is here: <https://dxr.mozilla.org/mozilla-central/source/dom/bindings/Errors.msg> We should be able to add telemetry probes for these errors to get an idea of the relative frequency of them in the wild, so that we can prioritize the work on adding documentation for the errors to MDN.
Do we want to document those errors? Why?
(In reply to :Ms2ger from comment #1) > Do we want to document those errors? Why? Some motivation is written down in bug 1179876. This is really helpful for beginners. Also, see Rust's error help :-) Morgan has implemented the telemetry probe for JS errors in bug 1255133. Might be useful here. There is also https://dxr.mozilla.org/mozilla-central/source/dom/base/domerr.msg and https://dxr.mozilla.org/mozilla-central/source/dom/locales/en-US/chrome/dom/dom.properties (which Kit mentioned in bug 1261877) Feature in action: http://imgur.com/EOztwbI There are many different errors and warnings thrown at people. Telemetry might tell us a lot about them, and I think it is not only useful for MDN.
Florian mentioned prioritizing the error message documentation would be helped by having telemetry data so I'll make this block bug 1261877.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.