Finding a new thought

Sometimes I get confused about when to just feel/process the emotion and learn to sit with it versus finding a new, more useful, better thought to think.

For example, let’s say I am not feeling confident about how I’m showing up at work and whether my boss will judge me. I know it’s my thoughts. But when do I allow all the feelings versus finding a new thought?