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 |
---|---|
| New Relic Agent object. |
| Attribute name. |
| Attribute value. |
| (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")