set_attribute
Sets a key/value attribute on the current Run.
Parameters
str
required
The attribute key. Must start with a letter, contain only letters, digits, and
_, and be at most 64 characters long.required
The attribute value.
ValueError 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 raises.
Returns
Returns None.
delete_attribute
Removes an attribute from the current Run. Does nothing if the key isn’t set.
Parameters
str
required
The attribute key. Raises
ValueError if the key is invalid.None.
AttributeValue
Example
LookupError.
Related
- Run attributes — How attributes work across Attempts and where they show up.
- attempt_store — Key-value store scoped to the current Attempt, for passing data within your code rather than reporting it.