FILE - In this Sept. 29, 2011, file photo, Tampa Bay Rays' Evan Longoria, center, celebrates with teammates Sean Rodriguez, left, and Elliot Johnson after his home run that defeated the New York Yankees 8-7 and clinched the AL wild card for the Rays, after a baseball game in St. Petersburg, Fla. The San Francisco Giants have acquired infielder Evan Longoria and cash from the Tampa Bay Rays for outfielder Denard Span, infielder Christian Arroyo and two minor league pitchers. The teams announced the moves Wednesday, Dec. 20, 2017. (AP Photo/Chris O'Meara, File)
FILE - In this Sept. 29, 2011, file photo, Tampa Bay Rays' Evan Longoria, center, celebrates with teammates Sean Rodriguez, left, and Elliot Johnson after his home run that defeated the New York Yankees 8-7 and clinched the AL wild card for the Rays, after a baseball game in St. Petersburg, Fla. The San Francisco Giants have acquired infielder Evan Longoria and cash from the Tampa Bay Rays for outfielder Denard Span, infielder Christian Arroyo and two minor league pitchers. The teams announced the moves Wednesday, Dec. 20, 2017. (AP Photo/Chris O'Meara, File) Credit: Chris O'Meara

San Francisco — The San Francisco Giants found the offense-producing third baseman they sought this offseason, acquiring Evan Longoria and cash from the Tampa Bay Rays on Wednesday for outfielder Denard Span, infielder Christian Arroyo and two minor league pitchers.

The 32-year-old Longoria leaves Tampa Bay as the longest-tenured player in franchise history, after spending nearly 10 seasons in a Rays uniform. He is the club’s all-time leader with 1,435 games played, 261 home runs and 892 RBIs. Of the 30 postseason games in Rays history, all 30 have featured Longoria starting at third base.

Longoria batted .261 with 20 homers and 86 RBIs last season. He is expected to fill a significant void for San Francisco at third, where the Giants mixed and matched during a surprising last-place season in 2017. Longoria has played at least 156 games in each of the past five seasons. He was the AL Rookie of the Year in 2008 and won three Gold Gloves.

“Evan gives us a Gold Glove-caliber player at third base and also provides us a middle of the order presence in the lineup,” Giants general manager Bobby Evans said. “His durability and leadership will strengthen our club moving forward.”

In November 2012, Longoria received a $136.6 million, 10-year contract with Tampa Bay that added six guaranteed seasons and $100 million to his previous deal. It includes a team option for 2023 that could make the agreement worth $144.6 million over 11 years.

Tampa Bay in effect is responsible for $14.5 million of the $88 million Longoria is owed, and the Rays took on $13 million in guaranteed money due Span.

Rays general manager Erik Neander said trading Longoria “was in the best long-term interest of our franchise.”

“The decision itself was one that was incredibly difficult for us to make,” Neander said.

Orioles Closer Ruptures Achilles Tendon

Baltimore — Orioles closer Zach Britton ruptured his right Achilles tendon in offseason training, a significant injury that could cause him to miss part of the 2018 season.

Baltimore executive vice president of baseball operations Dan Duquette on Wednesday confirmed the torn Achilles tendon.

In a tweet announcing the injury, the team said Britton was injured Tuesday while training in California and wished him a speedy recovery.

Britton had 15 saves and a 2.89 ERA with the Orioles this past season. In 2016, had a 0.54 ERA and was perfect in save opportunities with a major league-leading 47.

Alderson Gets Extension From Mets

New York — Mets general manager Sandy Alderson was given a contract extension, a move long expected and announced Wednesday.

Alderson, a 1969 Dartmouth College graduate, succeeded Omar Minaya in October 2010, and his previous contract expired after the season. The length of his new deal was not specified.

Nationals Add First Baseman

Washington— The Washington Nationals agreed to terms in principle on a $4 million, one-year contract with first baseman Matt Adams, a deal pending a successful physical.

Adams hit .274 last season with 20 home runs and 65 RBIs with the St. Louis Cardinals and Atlanta Braves.

He is a career .271 hitter in six major league seasons.