• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

nrSetCustomAttribute

Syntax

nrSetCustomAttribute(nr as Object, key as String, value as Object, actionName = "" as String) as Void

Description

Set a custom attribute to be included in the events.

Arguments

Arguments

Description

nr

New Relic Agent object.

key

Attribute name.

value

Attribute value.

actionName

(optional) Action where the attribute will be included. Default all actions.

Return

Nothing.

Example

nrSetCustomAttribute(m.nr, "myNum", 123, "CONTENT_START")
nrSetCustomAttribute(m.nr, "myString", "hello")
Copyright © 2025 New Relic Inc.

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