Skip to content

Conversation

@cpjmcquillan
Copy link
Contributor

Context

https://github.com/DFE-Digital/register-ects-project-board/issues/1964

Changes proposed in this pull request

This has been around the houses a little recently in sentry-ruby:

but the TLDR seems to be we should enable a configuration option active_job_report_on_retry_error if we want to report errors when jobs are retried in ActiveJob.

This enables the configuration.

We want to do this, because it gives us better observablity of when things are going wrong (e.g we're not sending OTP emails due to errors).

Guidance to review

This has been around the houses a little recently in [sentry-ruby]:

- [#2500]
- [#2573]
- [#2617]

but the TLDR seems to be we should enable a configuration option
`active_job_report_on_retry_error` if we want to report errors when jobs are
retried in `ActiveJob`.

This enables the configuration.

We want to do this, because it gives us better observablity of when things are
going wrong (e.g we're not sending OTP emails due to errors).

[sentry-ruby]: https://github.com/getsentry/sentry-ruby
[#2500]: getsentry/sentry-ruby#2500
[#2573]: getsentry/sentry-ruby#2573
[#2617]: getsentry/sentry-ruby#2617
@sonarqubecloud
Copy link

@github-actions
Copy link

Review app deployed to https://cpd-ec2-review-981-web.test.teacherservices.cloud

@peterdavidhamilton
Copy link
Contributor

Sensible

@cpjmcquillan cpjmcquillan added this pull request to the merge queue Jul 23, 2025
Merged via the queue into main with commit d056e99 Jul 23, 2025
21 checks passed
@cpjmcquillan cpjmcquillan deleted the connor/1964-sentry-capture-retried-active-job-errors branch July 23, 2025 11:05
@github-actions
Copy link

Review app for PR 981 was deleted

cpjmcquillan added a commit that referenced this pull request Jul 23, 2025
In #981, I missed the `.rails`.

We didn't catch it because Sentry is disabled in review apps, but it blew up on
Staging.

This fixes things.

Verified locally with `ENABLE_SENTRY=true bin/dev` before/after the change.
@cpjmcquillan cpjmcquillan mentioned this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants