I told my direct boss as soon as I got a doctor's confirmation of my pregnancy (at a bit more than 4 weeks), as my job requires outdoor duties sometimes and I will need to get out of those duties. If I don't tell her then I would probably be assigned to go out for an entire day, which my physical situation probably won't allow now (fatigued most of the time).