Record spy as the callback.