ANSWER:
If you are a man and you wake up finding traces of semen, this is nocturnal emission and you must perform ghusul and your fast is valid.
But if it is only a drop or to, then this is most likely mathi (prostatic fluid) and this doesn’t require ghusul. You simply wash it and your private part and perform wudhu.