setAttribute
Sets a key/value attribute on the current Run.
Parameters
The attribute key. Must start with a letter, contain only letters, digits, and
_, and be at most 64 characters long.Error when the key or value is invalid, when the Run would have more than 64 attributes, or when its attributes would serialize to more than 16 KB. The attribute isn’t changed when it throws.
deleteAttribute
Removes an attribute from the current Run. Does nothing if the key isn’t set.
Parameters
AttributeValue
Example
Related
- Run attributes — How attributes work across Attempts and where they show up.
- attemptStore — Key-value store scoped to the current Attempt, for passing data within your code rather than reporting it.