During an ERCP procedure, the type of anesthesia administered (either local or general) is determined by the gastroenterologist, taking into account the patient's specific medical condition and comfort requirements.