Amend sample to include env and backtrace info