• /
  • Log in

Collect custom attributes

For some New Relic solutions, one way to report custom data to New Relic is to use custom attributes. For example, for New Relic browser monitoring, you might create a custom attribute to track the user name associated with a slow or failing request.

Requirements

Custom attributes are available for these New Relic solutions:

  • APM
  • Browser monitoring
  • Mobile monitoring
  • Infrastructure monitoring

For other custom data solutions, see Intro to custom data.

APM: Record custom attributes

Important

Review the list of reserved terms used by NRQL. Using reserved terms can cause issues.

To enable and use custom attributes for APM, follow the procedure for your APM agent:

Browser monitoring: Record custom attributes

The browser agent provides an API to specify extra details associated with a page view or browser interaction, either by forwarding attributes from APM to browser monitoring or by specifying custom attributes through JavaScript. Values forwarded from the APM agent are encoded and injected into browser attributes by our browser agent.

Infrastructure monitoring: Record custom attributes

Our Infrastructure monitoring lets you create custom attributes that are used to annotate the data from the infrastructure agent. You can use this metadata to build filter sets, group your results, and annotate your data.

Mobile monitoring: Record custom attributes

Mobile agents include API calls to record custom attributes:

For more help

Create issueEdit page
Copyright © 2021 New Relic Inc.