Monitor uncaught JS exceptions with ts_mon |
|||
Issue descriptionGoal: be able to detect problems like issue 697306 . Ideally re-use Sean's Sheriff-o-matic code that exports the /chrome/infra/frontend/js_errors metric.
,
Mar 1 2017
Can you provide any more information here? These errors occur in the client, which means that they would have to be either monitored directly (seems difficult b/c creds) or exported back to the service (seems spoofable).
,
Mar 1 2017
ths JS: https://cs.chromium.org/chromium/infra/go/src/infra/appengine/sheriff-o-matic/scripts/clientmon.js The handler: https://cs.chromium.org/chromium/infra/go/src/infra/appengine/sheriff-o-matic/som/main.go?l=254 It uses xsrf tokens to prevent spoofing. Of course if you have bugs in the xsrf part it won't report anything. Once you get it set up though it'll even show you JS stack trace summaries in pantheon: https://screenshot.googleplex.com/9Cf65YLyuVq
,
Mar 1 2017
I'd be happy to move this code out into a shared location too btw.
,
Mar 1 2017
Cool, thanks! I'll look into that sometime. By "spoofing" I meant people sending you fake errors, like: "lol sup dawg" x 100 I think this is actually still possible, since a user could just load the page 100 times (to get XSRF tokens) and send whatever data they want to the endpoint.
,
Mar 6 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 24 2018
Sounds cool but until this is done more generically across our web apps I don't think it will be easy to do in logdog. |
|||
►
Sign in to add a comment |
|||
Comment 1 by d...@chromium.org
, Mar 1 2017Status: Available (was: Assigned)