get trace by key at controller and view level