def instrument
      proc do
        publish_start

        if ActiveSupport::Notifications.notifier.listening?("coach.middleware.finish")
          instrument_deprecated { call }
        else
          ActiveSupport::Notifications.
            instrument("finish_middleware.coach", middleware_event) { call }
        end
      end
    end
def instrument
      proc do
        publish_start

        if ActiveSupport::Notifications.notifier.listening?("coach.middleware.finish")
          instrument_deprecated { call }
        else
          ActiveSupport::Notifications.
            instrument("finish_middleware.coach", middleware_event) { call }
        end
      end
    end
Use ActiveSupport to instrument the execution of the subsequent chain.