Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch airbrake mgmt to defra-ruby-alert #395

Merged
merged 4 commits into from
Feb 7, 2020

Conversation

Cruikshanks
Copy link
Member

Whilst working on an issue for the Flood Risk Activity Exemptions service we came across an issue with Airbrake.

We wanted to add a new Rake task, and we wanted to apply our new pattern of ensuring Airbrake is closed when the task exits to ensure any errors are reported. The problem was due to the age of the Airbrake gem being used this caused an error in FRAE we hadn't seen in WEX and WCR.

So for reasons outlined in FRAE PR 312 we came up with defra-ruby-alert. The idea is going forward this will provide a single interface for configuring Airbrake and ensure the pattern of making sure all exceptions are reported before an app closes is applied consistently in all scenarios.

The main changes to enable this have been applied to the waste-carriers-engine.

These changes finalise the implementation for the front-office, switching out requiring and configuring Airbrake directly, to passing config details through to the WCR engine for it to do it.

@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the code label Feb 4, 2020
@Cruikshanks Cruikshanks self-assigned this Feb 4, 2020
This is a temporary change. Once the defra-ruby-alert PR for the engine has been merged this will be switched back to `master` and the Gemfile.lock updated to the correct commit hash.
Switching to defra-ruby-alert is complete in the waste-carriers-engine
@Cruikshanks Cruikshanks marked this pull request as ready for review February 7, 2020 11:36
@Cruikshanks Cruikshanks merged commit b08866b into master Feb 7, 2020
@Cruikshanks Cruikshanks deleted the implement-defra-ruby-alert branch February 7, 2020 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the code
Projects
None yet
2 participants