Record trait change events in single and multi-threaded environments.