Same thing happened to my car, hesitation at about 3k rpms, and a week later, CEL. Was throwing the code 'too lean'.
Cleaned EGR, Replaced Spark plugs, and my Intake tube was cracked so i wrapped it in tape. Quite unsure which part fixed my issue.. :) Good luck.