Custom attributes allow you to decorate an event with additional information by adding a key-value pair. For example, you could attach user names to failing requests to see if particular users have an unusually poor experience. To add custom attributes, you must first enable them for your agent, and then make an API call to record the attribute.
Custom attribute data is available from:
Add custom attributes to APM events
To add custom attributes to New Relic APM events, follow the agent-specific custom attribute instructions:
- Go and custom attributes
- Java and custom attributes
- .NET and custom attributes
- Node.js and custom attributes
- PHP and custom attributes
- Python and custom attributes
- Ruby and custom attributes
You cannot add attributes to events after the event is recorded. New attributes will only be reported beginning at the time of the change.
Requirements for custom attributes
When creating your own custom attributes, follow New Relic Insights and NRQL requirements for:
For more help
Additional documentation resources include: