Always tell your surgical and anesthesia team that you take trazodone before any procedure involving anesthesia. Its sedative effect, influence on blood pressure, and potential QT-interval interaction with certain anesthesia medications are all relevant to how your care team plans monitoring during and after surgery.
In most cases, trazodone does not need to be stopped before surgery, but this should be explicitly confirmed with your surgical and prescribing teams rather than assumed — some procedures or planned medications may call for adjustment.