The configuration should be added in kolibri/core/assets/src/core-app/index.js.
Create a function report() inside kolibri/core/assets/src/utils that is called from the error handlers. The report() function posts the error to the api/errorreports/report endpoint. For example:
Overview
This task implements the runtime error tracking mechanism for the frontend.
Description and outcomes
kolibri/core/assets/src/core-app/index.js
.report()
insidekolibri/core/assets/src/utils
that is called from the error handlers. Thereport()
function posts the error to the api/errorreports/report endpoint. For example:Acceptance Criteria
report()
is called whenever the error is reported and makes a post request toapi/errorreports/report
.Assumptions and Dependencies
Scope
report()
to make post request.report()
.Accessibility Requirements
NA
Resources