Skip to content

Commit

Permalink
Ignore unknown routes from Rollbar
Browse files Browse the repository at this point in the history
This particular error keeps eating up our Rollbar usage limit.
It’s not a particularly useful message, so let’s ignore it.
  • Loading branch information
gnclmorais committed Feb 24, 2024
1 parent ae8f46d commit aaa2e94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/initializers/rollbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
# You can also specify a callable, which will be called with the exception instance.
# config.exception_level_filters.merge!('MyCriticalException' => lambda { |e| 'critical' })

# This particular exception is blowing up our Rollbar plan limit
# and it doesn't provide useful information so let's ignore it.
config.exception_level_filters.merge!(ActionController::RoutingError.name => 'ignore')

# Enable asynchronous reporting (uses girl_friday or Threading if girl_friday
# is not installed)
# config.use_async = true
Expand Down

0 comments on commit aaa2e94

Please sign in to comment.