def sanitized_session_data
      return if Appsignal.config[:skip_session_data] ||
          !request.respond_to?(:session)
      session = request.session
      return unless session

      Appsignal::Utils::HashSanitizer.sanitize(
        session.to_hash, Appsignal.config[:filter_session_data]
      )
    end
def sanitized_session_data
      return if Appsignal.config[:skip_session_data] ||
          !request.respond_to?(:session)
      session = request.session
      return unless session

      Appsignal::Utils::HashSanitizer.sanitize(
        session.to_hash, Appsignal.config[:filter_session_data]
      )
    end
Returns sanitized session data.

 The session data is sanitized by the {Appsignal::Utils::HashSanitizer}.

 @return [nil] if `:skip_session_data` config is set to `true`.
 @return [nil] if the {#request} object doesn't respond to `#session`.
 @return [nil] if the {#request} session data is `nil`.
 @return [Hash<String, Object>]