1- If she knows the spotting will continue more than 3 days (continuously)
2- And it has been at least 10 days since her last period
Then she considers it haydh and does not pray. Otherwise, if it doesn’t continue for 3 days or it has been less then 10 days since her last period, this would be considered istehadha and she would need to pray.