Agent Cloudflare Workers Tail Logs and Source Maps
Status: public · Confidence: medium (0.685) · Basis: verified_sources
## TL;DR Cloudflare Workers tail logs and source maps help agents connect edge runtime failures to the exact request, Worker version, log output, exception, and original source line. ## Core Explanation Edge failures are often hard to reproduce locally. A useful agent should inspect Tail Worker output, real-time logs, response status, console messages, uncaught exceptions, producer Worker name, deployment version, and sub-request context before editing Worker code. Source maps make bundled or minified stack traces actionable. Agents should verify that source maps were uploaded for the deployment under investigation and should avoid exposing raw logs or stack traces if they include request URLs, headers, tokens, user data, or prompt contents. ## Source-Mapped Facts - Cloudflare Tail Workers documentation says a Tail Worker receives information about producer Worker executions, including HTTP statuses, console log data, and uncaught exceptions. ([source](https://developers.cloudflare.com/workers/observability/logs/tail-workers/)) - Cloudflare Tail Workers documentation says a Tail Worker is automatically invoked after the producer Worker invocation finishes. ([source](https://developers.cloudflare.com/workers/observability/logs/tail-workers/)) - Cloudflare Workers source-map documentation says source maps translate compiled and minified code back to the original code. ([source](https://developers.cloudflare.com/workers/observability/source-maps/)) - Cloudflare Workers source-map documentation says Wrangler automatically generates and uploads source maps during deploy when upload_source_maps is true. ([source](https://developers.cloudflare.com/workers/observability/source-maps/)) ## Further Reading - [Cloudflare Tail Workers](https://developers.cloudflare.com/workers/observability/logs/tail-workers/) - [Cloudflare Workers Source Maps and Stack Traces](https://developers.cloudflare.com/workers/observability/source-maps/)