Removes an attribute.
Agent version 5.0.0 or higher.
This method removes the attribute specified by the name string.
For context on how to use this API, see Send custom attributes and events to Insights.
Required. The name of the attribute that you want to remove.
true if it succeeds, or
false if it doesn't.
Remove an attribute named
boolean attributeRemoved = NewRelic.removeAttribute("rate");
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 data security and licenses documentation.