canvas-lms/config/sentry.yml.example

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
357 B
Plaintext
Raw Normal View History

development:
Add Sentry frontend exception recording This commit adds Sentry support to the frontend, so that exceptions on the browser side will be reported to Sentry. It requires that `frontend_dsn` be defined in `config/sentry.yml` and that the `sentry_disabled` Setting be `false` or unset. Future commits may add support for frontend APM, Fullstory linking, and source map uploading. Settings included in this commit: - `sentry_frontend_errors_sample_rate`, which controls the sample rate of error collection (defaults to 0.0, meaning no errors are collected) flag=none closes DE-967 test plan: - confirm that there are no issues when `frontend_dsn` is not set - confirm that setting `frontend_dsn` results in frontend exceptions being caught - check unhandled exceptions - check exceptions caught by Canvas's React `ErrorBoundary` - confirm that Sentry is not enabled on the frontend if the `sentry_disabled` setting is `true` - confirm that user context is associated with frontend exceptions reported to Sentry - confirm that adjusting `sentry_frontend_errors_sample_rate` correctly adjusts the quantity of errors delivered to Sentry, and that leaving it unset or set to 0.0 results in no errors being sent Change-Id: I47af7006a7f12b54dcb3f0121331af6ca2509124 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282879 Product-Review: Isaac Moore <isaac.moore@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Ahmad Amireh <ahmad@instructure.com> QA-Review: Ahmad Amireh <ahmad@instructure.com>
2022-01-15 03:23:59 +08:00
dsn: 'your-sandbox-dsn-here'
frontend_dsn: 'your-sandbox-frontend-dsn-here'
org_slug: 'your-org-slug-here'
base_url: 'your-base-url-here'
production:
dsn: 'your-real-dsn-here'
Add Sentry frontend exception recording This commit adds Sentry support to the frontend, so that exceptions on the browser side will be reported to Sentry. It requires that `frontend_dsn` be defined in `config/sentry.yml` and that the `sentry_disabled` Setting be `false` or unset. Future commits may add support for frontend APM, Fullstory linking, and source map uploading. Settings included in this commit: - `sentry_frontend_errors_sample_rate`, which controls the sample rate of error collection (defaults to 0.0, meaning no errors are collected) flag=none closes DE-967 test plan: - confirm that there are no issues when `frontend_dsn` is not set - confirm that setting `frontend_dsn` results in frontend exceptions being caught - check unhandled exceptions - check exceptions caught by Canvas's React `ErrorBoundary` - confirm that Sentry is not enabled on the frontend if the `sentry_disabled` setting is `true` - confirm that user context is associated with frontend exceptions reported to Sentry - confirm that adjusting `sentry_frontend_errors_sample_rate` correctly adjusts the quantity of errors delivered to Sentry, and that leaving it unset or set to 0.0 results in no errors being sent Change-Id: I47af7006a7f12b54dcb3f0121331af6ca2509124 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282879 Product-Review: Isaac Moore <isaac.moore@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Ahmad Amireh <ahmad@instructure.com> QA-Review: Ahmad Amireh <ahmad@instructure.com>
2022-01-15 03:23:59 +08:00
frontend_dsn: 'your-real-frontend-dsn-here'
org_slug: 'your-org-slug-here' # like 'instructure'
base_url: 'your-base-url-here' # like https://sentry.io