Sha256: 746b7506518fdb1c6161792355d968d6e32c0c7ae44161dd10fd18498750040f

Contents?: true

Size: 474 Bytes

Versions: 16

Compression:

Stored size: 474 Bytes

Contents

module Airbrake
  module Rack
    ##
    # Adds HTTP session.
    #
    # @since v5.7.0
    class SessionFilter
      ##
      # @return [Integer]
      attr_reader :weight

      def initialize
        @weight = 96
      end

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

        session = request.session
        notice[:session] = session if session
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
airbrake-7.3.0 lib/airbrake/rack/session_filter.rb
airbrake-7.2.1 lib/airbrake/rack/session_filter.rb
airbrake-7.2.0 lib/airbrake/rack/session_filter.rb
airbrake-7.1.1 lib/airbrake/rack/session_filter.rb
airbrake-7.1.0 lib/airbrake/rack/session_filter.rb
airbrake-7.0.3 lib/airbrake/rack/session_filter.rb
airbrake-7.0.2 lib/airbrake/rack/session_filter.rb
airbrake-7.0.1 lib/airbrake/rack/session_filter.rb
airbrake-7.0.0 lib/airbrake/rack/session_filter.rb
airbrake-6.3.0 lib/airbrake/rack/session_filter.rb
airbrake-6.2.1 lib/airbrake/rack/session_filter.rb
airbrake-6.2.0 lib/airbrake/rack/session_filter.rb
airbrake-6.1.2 lib/airbrake/rack/session_filter.rb
airbrake-6.1.1 lib/airbrake/rack/session_filter.rb
airbrake-6.1.0 lib/airbrake/rack/session_filter.rb
airbrake-6.1.0.rc.1 lib/airbrake/rack/session_filter.rb