@@ -15,6 +15,7 @@ class Configuration
1515 after ( :initialize ) do
1616 @rails = Sentry ::Rails ::Configuration . new
1717 @excluded_exceptions = @excluded_exceptions . concat ( Sentry ::Rails ::IGNORE_DEFAULT )
18+ @excluded_exceptions = @excluded_exceptions . concat ( Sentry ::Rails ::RAILS_8_IGNORE_DEFAULT ) if ::Rails . version . to_f >= 8.0
1819
1920 if ::Rails . logger
2021 if defined? ( ::ActiveSupport ::BroadcastLogger ) && ::Rails . logger . is_a? ( ::ActiveSupport ::BroadcastLogger )
@@ -48,7 +49,6 @@ module Rails
4849 "ActionController::NotImplemented" ,
4950 "ActionController::ParameterMissing" ,
5051 "ActionController::RoutingError" ,
51- "ActionController::TooManyRequests" ,
5252 "ActionController::UnknownAction" ,
5353 "ActionController::UnknownFormat" ,
5454 "ActionController::UnknownHttpMethod" ,
@@ -57,6 +57,11 @@ module Rails
5757 "ActiveRecord::RecordNotFound"
5858 ] . freeze
5959
60+ # Rails 8.0 introduced rate limiting which raises ActionController::TooManyRequests
61+ RAILS_8_IGNORE_DEFAULT = [
62+ "ActionController::TooManyRequests"
63+ ] . freeze
64+
6065 ACTIVE_SUPPORT_LOGGER_SUBSCRIPTION_ITEMS_DEFAULT = {
6166 # action_controller
6267 "write_fragment.action_controller" => %i[ key ] ,
0 commit comments