I am having knee replacement and I have been on tramadol for over 10 years for my back issue.

Is it safe to take the tramadol the night b4 surgery? My doctor's assistant said I have to stop it 2 weeks b4, but that is impossible since I cannot function with my bad back.

Thank you.