class SilenceRequest
Ruby on Rails 8.0.4
Since v8.0.4Available in: v8.0.4 v8.1.2
Allows you to silence requests made to a specific path. This is useful for preventing recurring requests like health checks from clogging the logging. This middleware is used to do just that against the path /up in production by default.
Example:
config.middleware.insert_before \ Rails::Rack::Logger, Rails::Rack::SilenceRequest, path: “/up”
This middleware can also be configured using config.silence_healthcheck_path = "/up" in Rails.
Inherits from
Methods (defined here)
Methods (inherited)
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::NumericWithFormat (2)
- # to_formatted_s
- # to_fs