Update deprecated API calls

Problem

We occasionally remove deprecated APIs. If you use any of the following methods, you must update your API calls with the recommended replacements before upgrading to certain Ruby agent versions.

Ruby agent 9.0.0

The following APIs were removed with Ruby agent 9.0.0. Update your API with the following recommended replacements:

Ruby agent 4.0.0

The following APIs were removed with Ruby agent 4.0.0. Update your API with the following recommended replacements: