The process of identifying and treating adverse events that occur during or after the administration of anesthesia.