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:
Replace with NewRelic::Agent#disable_all_tracing or NewRelic::Agent#ignore_transaction
Ruby agent 4.0.0
The following APIs were removed with Ruby agent 4.0.0. Update your API with the following recommended replacements:
Replace with NewRelic::Agent#notice_error
Replace with NewRelic::Agent.ignore_transaction
Replace with NewRelic::Agent.add_custom_attributes
Replace with NewRelic::Agent.add_custom_attributes
Delete the method call as it is no longer needed and had been returning an empty string.
If you had chained get_stats with increment_count, use:
NewRelic::Agent.increment_metric
If you had chained get_stats with record_data_point, use:
NewRelic::Agent.record_metric
If you had chained get_stats_no_scope with increment_count, use:
NewRelic::Agent.increment_metric
If you had chained get_stats_no_scope with record_data_point, use:
NewRelic::Agent.record_metric
Delete the method call as it only logs a warning message to the agent log.
Replace with NewRelic::Agent.drop_buffered_data
Replace with NewRelic::Agent.add_custom_attributes
Replace with NewRelic::Agent::Datastores::MetricHelper.metrics_for
Replace with NewRelic::Agent::Transaction.recording_web_transaction?
Replace with NewRelic::Agent::Transaction.abort_transaction!
Delete inclusions of this module. As of Ruby agent version 3.9.0, New Relic instruments Rack middlewares by default. As a result, this entire module has been deprecated.