BARCELONA, Spain (AP) -- Spain captain Albert Costa has been released from a hospital after suffering heart-related problems.

The Spanish tennis federation said the 34-year-old Costa was admitted to a hospital near Barcelona on Thursday after complaining of heart palpitations, chest pains and hypertension. He was released later in the day.

In his first year as captain, Costa led Spain to its fourth Davis Cup title with a 5-0 sweep of the Czech Republic on Sunday.

Costa was a member of Spain's first Davis Cup-winning team in 2000. He won the French Open two years later.

SI Apps
We've Got Apps Too
Get expert analysis, unrivaled access, and the award-winning storytelling only SI can provide - from Peter King, Tom Verducci, Lee Jenkins, Seth Davis, and more - delivered straight to you, along with up-to-the-minute news and live scores.