Advanced aircraft leave contrails, as well. Contrail formation is based upon atmospherics. For a military operation one would get a contrail prediction from weather forecasters for the particular conditions of the day and then avoid those altitudes. You also confirm the contrail altitudes if you can.
Developmental spy planes dont generally fly during the day.