Syntax
add_user_attribute(key, value)
(Deprecated.) Adds a custom attribute to a transaction.
Description
Important
This call is deprecated, and aliases to add_custom_parameter()
. Use add_custom_parameter()
instead.
This call records an attribute (a key/value pair attached to a transaction). The key must be a string. The value must be either a string, integer, float, or boolean.
Parameters
Parameter | Description |
---|---|
string | Required. The key name. Current allowed values for the key are:
|
string, integer, float, boolean | Required. The string value to add to the current transaction. Only the first 255 characters are retained. |
Return values
None.
Examples
Call has been deprecated
Use add_custom_parameter
instead.
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.