BUG-2500: add current tree state to traces