Page MenuHomePhabricator

Investigate error tracking and alerts for in-banner JS
Open, Needs TriagePublic

Description

From @Jdlrobson in T215711:

consider during the render process of a banner catching any errors and hitting a stats beacon with the banner name similar to this:
https://github.com/wikimedia/mediawiki-skins-MinervaNeue/blob/master/resources/skins.minerva.scripts/errorLogging.js

Basically we can catch any errors and increment a counter at wikimedia.event.BannerError.<skin>.<bannerName> to help us identify banners that have problems

In addition to a beacon to monitor live errors, we could add something to banner preview that shows loud JS-error alerts (like a dialogue box, similar to what we have for CSP).

Event Timeline

AndyRussG renamed this task from Investigate error tracking for in-banner JS to Investigate error tracking and alerts for in-banner JS.Feb 11 2019, 9:27 PM