How long should I wait to tell my work I’m pregnant?

I recently found out I’m pregnant. Im setting up a appointment with my doctor this week. I just wanna be super careful and safe with my pregnancy. Just because I have high blood pressure and anxiety. I don’t want that to be put on the baby. I wanna make sure my boss knows I’m pregnant. So I’m allowed to back away when I’m overwhelmed. Just how long should I wait?