You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: rollbar.rb
    path of file: ./repos/rollbar-gem/lib/rollbar/middleware/rails
    
    the code of the file until where you have to start completion: require 'rollbar/request_data_extractor'
require 'rollbar/exception_reporter'

module Rollbar
  module Middleware
    module Rails
      class RollbarMiddleware
        include RequestDataExtractor
        include ExceptionReporter

        def initialize(app)
          @app = app
       
    
        def call(env)
          self.request_data = nil

          Rollbar.reset_notifier!

          env['rollbar.scope'] = scope = fetch_scope(env)

          Rollbar.scoped(scope) do
            begin
              Rollbar.notifier.enable_locals
              response = @app.call(env)

              if (framework_exception = env['action_dispatch.exception'])
                report_exception_to_rollbar(env, framework_exception)
              end

              response
            rescue Exception => e # rubocop:disable Lint/RescueException
              report_exception_to_rollbar(env, e)
              raise
            ensure
              Rollbar.notifier.disable_locals
            end