Error Reporting
cm-admin reports the errors it rescues through Rails.error with source: "cm_admin". Inside cm-admin code, report errors with CmAdmin.report_error.
Quick exampleβ
CmAdmin.report_error(error, **context)
Optionsβ
| Error tracker | Setup |
|---|---|
| Airbrake / Errbit | Nothing to do. When the airbrake gem is loaded, cm-admin forwards its errors to Airbrake.notify. |
| Sentry | Set config.rails.register_error_subscriber = true in your Sentry initializer. It defaults to false, and without it cm-admin's errors are not sent. |