stable

Clone or download

Read-only

request #26730: Measure and log frontend errors

Errors are logged in a dedicated file/tag and a new counter is added to the Prometheus exported so we can display them in nice dashboards and setup some alerting on it. Change-Id: Ie64feaa0a2b356352bbc672e6cd320bd1b24c2df

Modified Files

Name
A src/common/Error/FrontendErrorCollectorController.php +75 −0 Go to diff View file
M src/common/Layout/BaseLayout.php +2 −0 Go to diff View file
M src/common/Request/RouteCollector.php +16 −0 Go to diff View file
M src/etc/logrotate.syslog.dist +8 −0 Go to diff View file
A src/scripts/tuleap/collect-frontend-errors.ts +32 −0 Go to diff View file
M src/webpack.common.js +1 −0 Go to diff View file
A tests/unit/common/Error/FrontendErrorCollectorControllerTest.php +106 −0 Go to diff View file