Change in meds

I have not felt right since taking Metformin hcl since Jan.Stomach issues and my heartbeat was consistently over 100. I stopped taking it for a week and started to feel better and my heart rate went back to normal.(my levels were good on it though) I told my doctor, when I was in for an infection, so he switched me to 10 mg. of Glipizide. What should I be concerned about. Thanks.