Endocrinologist

What is it? My obgyn recommended me to see one before starting metformin but my normal doctor just said to start the met without seeing one? I've now been on met for a month with no sign of AF