Longoria exited Thursday's contest in the fifth inning, Alex Pavlovic of NBC Sports Bay Area reports.
There was no immediate reason given for Longoria's exit, though he dealt with plantar fasciitis during spring training. The Giants are already missing Brandon Belt (quadriceps), Donovan Solano (calf) and Brandon Crawford (side) from their infield, so they'll be in a difficult position if Longoria is forced to miss additional time.