module Mongoid::Railties::ControllerRuntime::ControllerExtension

This extension mimics the Rails’ internal method to measure ActiveRecord runtime during request processing. It appends MongoDB runtime value (‘mongoid_runtime`) into payload of instrumentation event `process_action.action_controller`.