The Tampa Bay Rays have traded third baseman Evan Longoria and cash considerations to the San Francisco Giants.