Repository navigation
Stop sending 404s and unknown formats to Airbrake - #1458
Merged
caseyhelbling merged 2 commits intoNov 6, 2026
Merged
Conversation
About half of Airbrake's notices are ActionController::RoutingError
("Nonprofit not found", "Campaign not found", "Not Found"), mostly from
bots probing URLs, plus a steady trickle of UnknownFormat. They bury
real errors and use up the plan's monthly quota. Add both to the
existing ignore list.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
About half of Airbrake's notices are
ActionController::RoutingError("Nonprofit not found", "Campaign not found", "Not Found"), mostly from bots probing URLs. Over the last 30 days that was roughly 24,000 of about 48,000 notices. They bury real errors and use up the plan's monthly quota.This adds
ActionController::RoutingErrorandActionController::UnknownFormatto the existing ignore list inconfig/initializers/airbrake.rb. The second commit fixes thetype.class == Arraycomparison that standardrb flags in the same filter.Still reported
ActiveRecord::RecordNotFound. Some of these are real bugs, such as "Couldn't find Payment without an ID".InvalidAuthenticityTokennotices fromApplicationController#handle_unverified_request. Those need their own look: the handler notifies Airbrake but doesn't raise, so requests that fail the CSRF check still run.Testing
I loaded the initializer and ran sample exceptions through Airbrake's filter chain:
ActionController::RoutingErrorActionController::UnknownFormatEOFError(already ignored)ActiveRecord::RecordNotFoundRuntimeError"ActionController::InvalidAuthenticityToken"NoMethodError