Problem
You use Java agent version 3.16.1 or lower and need to upgrade to the latest version, but you use deprecated configuration options to configure agent attributes.
Solution
In newrelic.yml
, edit the configuration properties you use for compatiblity with the latest versions:
Deprecated property | New property |
---|---|
|
The stanza in the newrelic.yml configuration file called |
|
By default, request parameters are not sent to New Relic. Add |
|
Add each request parameter key to the |
|
By default, message queue parameters are not sent to New Relic. Previously, setting |
|
Previously, you could set |
|
The old |
In this example, the Java agent collects request parameters and records them to the transaction tracer and error collector destinations. This emulates enabling the legacy server-side configuration options for Capture attributes
or Capture parameters
.
To customize the attributes
element in your Java agent configuration file:
attributes.enabled: true attributes.include: request.parameters.*
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's and and documentation.