Add custom attributes to New Relic APM data

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:

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:

Recommendations for learning more: