Add trace hook from bug 890686.