Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Developer Platform von Cloudflare
Workers: KI-Agenten debuggen Workers mit lokalem Tracing
wrangler dev und vite dev erfassen bei lokalen Worker-Aufrufen automatisch OpenTelemetry-Traces und zugehörige Konsolenlogs, die KI-Agenten über die Local Explorer API und Menschen in der Local-Explorer-Oberfläche zum Debuggen nutzen können.
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/local/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.
Local Explorer showing a failed Worker trace with spans, timing, and errors
Automatic spans cover handler calls, outbound fetch() calls, and binding calls. Custom spans appear alongside these automatic spans. …