Free agent pitcher Nathan Eovaldi agreed to a contract on Tuesday with the Texas Rangers, the team announced late in the day.

The deal is for two years and $34 million, and it includes a third-year vesting player option, sources told ESPN's Jeff Passan earlier in the day. Performance bonuses in the contract can take the total value even higher for the veteran.