Add trace() to php in routers