• /
  • EnglishEspañolFrançais日本語한국어Português
  • EntrarComeçar agora

Custom attributes

Custom attribute methods

Method

Description

nrSetCustomAttribute

Set a custom attribute to be included in the events.

nrSetCustomAttributeList

Set a custom attribute list to be included in the events.

Examples

nrSetCustomAttribute

nrSetCustomAttribute(m.nr, "myNum", 123, "CONTENT_START")
nrSetCustomAttribute(m.nr, "myString", "hello")

nrSetCustomAttributeList

attr = {"key0":"val0", "key1":"val1"}
nrSetCustomAttributeList(m.nr, attr, "CONTENT_HEARTBEAT")
Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.