Async tracing, processing in tool.ts.