nrSetCustomAttributeList

Syntax

nrSetCustomAttributeList(nr as Object, attr as Object, actionName = "" as String) as Void

Description

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

Arguments

Arguments

Description

nr

New Relic Agent object.

attr

Attribute list, as an associative array.

actionName

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

Return

Nothing.

Example

attr = {"key0":"val0", "key1":"val1"}
nrSetCustomAttributeList(m.nr, attr, "CONTENT_HEARTBEAT")