Workers 本地追踪:AI 代理可调试 Worker
Workers - AI agents can debug Workers with local tracing
Cloudflare Workers 开发者注意:本地调试新增 AI 代理支持,可自动捕获追踪并让代理自主修复代码,无需部署。建议升级 wrangler 或相关工具链以启用此能力。
wrangler dev and vite dev automatically capture structured OpenTelemetry traces and correlated console logs during local Worker invocations.
Debug with AI agents
When the tooling detects an AI agent session, it prints a terminal hint pointing to the Local Explorer API at /cdn-cgi/explorer/api. The API serves an OpenAPI schema and exposes a read-only observability query endpoint for discovering telemetry, querying traces and logs, and inspecting binding state.
The agent can identify the exact failing operation, fix the code, rerun the request, and verify the result. This debug loop requires no deployment or temporary logs.
Inspect traces in Local Explorer
Humans can inspect the same traces and correlated console logs in the Local Explorer browser UI. Each trace shows spans, timing, attributes, and errors.
Automatic spans cover handler calls, outbound fetch() calls, and binding calls. Custom spans appear alongside these automatic spans.
For more details, refer to the Local Explorer documentation.
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力