Add a task in errorreports
that reports all the errors to our telemetry server
#12356
Labels
Milestone
errorreports
that reports all the errors to our telemetry server
#12356
Overview
Add a task in errorreports app that will report all the errors to our telemetry server
Description and outcomes
ErrorReports
model, so we shall be able to report those errors to our telemetry server.ping_error_report()
inkolibri/core/errorreports/tasks/
that will be usingErrorReports.get_unsent_errors()
to query unsent errors fromErrorReports
and then make a post request to our telemetry API (to be implemented yet) with the errors. The JSON request structure will be:ping_back
mechanism has been successfully executed. So the enqueue can be done in a try/catch block within a try/catch block inkolibri.core.analytics.tasks._ping()
. So the basic workflow will remain, ifping_back
is successful, we enqueue errorr eport task, if error report fails we do nothing, so whenping_back
is again enqueued and successful, the error-report task is enqueued again.sent
ofErrorReport
as true) usingmark_as_sent()
methodAcceptance Criteria
ping_error_report()
task created inerrorreports/tasks.py
.ping_back
mechanism is successful, it enqueuesping_error_report()
Assumptions and Dependencies
Scope
_ping()
Out-of-Scope:
Accessibility Requirements
NA
Resources
The text was updated successfully, but these errors were encountered: