Sintaxis
nrSetCustomAttribute(nr as Object, key as String, value as Object, actionName = "" as String) as Void
Descripción
Establezca un atributo personalizado para ser incluido en el evento.
Argumentos
Argumentos | Descripción |
---|---|
| Objeto agente New Relic . |
| Nombre del atributo. |
| Valor del atributo. |
| (opcional) Acción donde se incluirá el atributo. Predeterminado para todas las acciones. |
Devolver
Nada.
Ejemplo
nrSetCustomAttribute(m.nr, "myNum", 123, "CONTENT_START") nrSetCustomAttribute(m.nr, "myString", "hello")