I think it depends on the nature of your work, the symptoms you have, and how comfortable you are with people knowing. I had to tell my bosses early because of my job requirements, but most people tell after the 1st trimester, giving their companies enough time to find cover in preparation for your maternity leave.