Brith control side affects?

I started birth control (depo shot) in July and haven’t had my period. Now I’m spotting, I was wondering for any of those who had their periods become irregular after birth control, how long does spotting last?