Enhance the existing maintenance_tasks error hook 👇 to add context information about the task that caused the error
|
MaintenanceTasks.error_handler.call(error) |
Note: host system can capture additional details about the background job itself with a setup similar to
Bugsnag.notify(exception) do |notification|
notification.severity = 'warning'
notification.add_tab(:sidekiq, job_context)
end
Which produces a bugsnag report similar to

so a full-featured background job report may not be necessary, just the maintenance task details.
Enhance the existing
maintenance_taskserror hook 👇 to add context information about the task that caused the errormaintenance_tasks/app/jobs/maintenance_tasks/task_job.rb
Line 100 in 7131371
Note: host system can capture additional details about the background job itself with a setup similar to
Which produces a bugsnag report similar to

so a full-featured background job report may not be necessary, just the maintenance task details.