Rails::Railtie
Internal: Inserts the middleware to manage request_ids and cleaning up after the request is complete.