Longoria, who was in the designated-hitter slot for the second consecutive night due to a sore shoulder, left the game and rode a stationary bike. He said after the game that the hamstring felt OK, and he considers himself day-to-day.
"I didn't feel a pop, I didn't feel a pull, I was able to walk and ride the bike and everything," Longoria said. "So, hopefully, it's just a day-to-day thing."
Longoria, the Rays' star third baseman who leads the Major Leagues in RBIs this season, said he felt the hamstring grab a few steps after crossing first base while running out a ground ball. He immediately notified trainer Ron Porterfield, and he was removed from the game for pinch-hitter Gabe Gross in the seventh.
Rays manager Joe Maddon said hamstring injuries are concerning, which is why he will take every precaution in handling the 24-year-old.
"I hope it is good by tomorrow," Maddon said. "I just don't know yet."
Longoria currently leads the American League in All-Star Game votes with 1,036,071. He's batting .322 with 13 home runs and 55 RBIs in his second full season.
Longoria said he's never had a hamstring issue before. He also said his shoulder is feeling better and is not an issue.
"Longo is a definite stallion when it comes to wanting to play this game," Maddon said. "He knows his role within our group. He knows his lot within the game already. And he knows that for us to get back to the promise land, he's got to be there."
Zach Schonbrun is an associate reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.