Add custom attributes to New Relic APM data

Insights automatically provides basic attributes you can use to send your data with the Event API. You can also use custom attributes 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.

Add custom attributes to APM events

You cannot add attributes to events after the event is recorded. New attributes will only be reported beginning at the time of the change.

To add custom attributes to APM events, you must first enable them for your New Relic agent, and then make an API call to record the attribute. Follow the agent-specific custom attribute procedures:

Requirements for custom attributes

When creating your own custom attributes, follow New Relic Insights and NRQL requirements for:

For more help

Recommendations for learning more: