Sha256: ba511db2646b04e099497c3a1951c7c4bae0a41f0b8a7ad38e22e80530d6bce0

Contents?: true

Size: 563 Bytes

Versions: 47

Compression:

Stored size: 563 Bytes

Contents

module Airbrake
  module Rack
    # Adds HTTP request parameters.
    #
    # @since v5.7.0
    class HttpParamsFilter
      # @return [Integer]
      attr_reader :weight

      def initialize
        @weight = 97
      end

      # @see Airbrake::FilterChain#refine
      def call(notice)
        return unless (request = notice.stash[:rack_request])

        notice[:params].merge!(request.params)

        rails_params = request.env['action_dispatch.request.parameters']
        notice[:params].merge!(rails_params) if rails_params
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
airbrake-10.0.0 lib/airbrake/rack/http_params_filter.rb
airbrake-9.5.5 lib/airbrake/rack/http_params_filter.rb
airbrake-9.5.4 lib/airbrake/rack/http_params_filter.rb
airbrake-9.5.3 lib/airbrake/rack/http_params_filter.rb
airbrake-9.5.2 lib/airbrake/rack/http_params_filter.rb
airbrake-9.5.1 lib/airbrake/rack/http_params_filter.rb
airbrake-9.5.0 lib/airbrake/rack/http_params_filter.rb
airbrake-9.4.5 lib/airbrake/rack/http_params_filter.rb
airbrake-9.4.4 lib/airbrake/rack/http_params_filter.rb
airbrake-9.4.3 lib/airbrake/rack/http_params_filter.rb
airbrake-9.4.2 lib/airbrake/rack/http_params_filter.rb
airbrake-9.4.1 lib/airbrake/rack/http_params_filter.rb
airbrake-9.4.0 lib/airbrake/rack/http_params_filter.rb
airbrake-9.3.0 lib/airbrake/rack/http_params_filter.rb
airbrake-9.2.2 lib/airbrake/rack/http_params_filter.rb
airbrake-9.2.1 lib/airbrake/rack/http_params_filter.rb
airbrake-9.2.0 lib/airbrake/rack/http_params_filter.rb
airbrake-9.1.0 lib/airbrake/rack/http_params_filter.rb
airbrake-9.0.2 lib/airbrake/rack/http_params_filter.rb
airbrake-9.0.1 lib/airbrake/rack/http_params_filter.rb