I lately have had two instances when I nearly choked from my throat swelling taking tramadol?

Tramadol allergy. Stop taking the medication. It sounds like you are allergic. Sometimes allergy will escalate and get worse the next time ! contact your doctor.
Allergic reaction. Sounds like an allergic reaction to the tramadol. I would suggest you never take it again and report your reaction to the prescribing physician. Check with your physician &/or pharmacist to see if there are other medications you need to avoid as well. You should have never taken it again without first talking to your physician. Swelling is a more dangerous allergic reaction than just hives.