@@ -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_1_1_IGNORE_DEFAULT ) if Gem ::Version . new ( ::Rails . version ) >= Gem ::Version . new ( "8.1.1" )
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,12 @@ module Rails
5757 "ActiveRecord::RecordNotFound"
5858 ] . freeze
5959
60+ # Rails 8.1.1 introduced ActionController::TooManyRequests for rate limiting
61+ # https://github.com/rails/rails/commit/73ecd0ced634e5177496677a2986ec3731c7e2ee
62+ RAILS_8_1_1_IGNORE_DEFAULT = [
63+ "ActionController::TooManyRequests"
64+ ] . freeze
65+
6066 ACTIVE_SUPPORT_LOGGER_SUBSCRIPTION_ITEMS_DEFAULT = {
6167 # action_controller
6268 "write_fragment.action_controller" => %i[ key ] ,
0 commit comments