Detect and send production issues straight to your agent
Source
blog.cloudflare.com
Date
Key takeaways · AI-distilled
Issues is built into the Workers runtime and enabled with one config line, with no SDK. It records uncaught exceptions, failed invocations, 5xx responses, console.log and console.error output, and logs with stack traces, and flags runaway alarms and log-heavy loops.
Automations fire when an issue crosses an occurrence threshold or returns after a quiet period, sending the source-mapped stack trace, surrounding logs and traces, Worker version and app context windowThe maximum amount of text a model can consider at once — its working memory for the current conversation or task.Full definition → to Claude Code, Cursor, Devin, a generic webhook, or chat and on-call tools.
Cloudflare recommends adding user, account or session identifiers through the runtime's built-in OpenTelemetry API, so each occurrence shows whether failures cluster in one account or session before the issue goes to an AI agentAn AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.Full definition →.
Turning Issues on for Cloudflare Workflows surfaced two bugs within a day: a control-plane migration stuck retrying on a SQLite foreign key error, and instance deletion that could exceed a Workers subrequest limit. Cloudflare OS traced both into the code and proposed fixes.
Terms in this piece · Glossary
context window — The maximum amount of text a model can consider at once — its working memory for the current conversation or task.
AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
Why it matters
Production errors arrive as grouped issues with logs, traces and Worker version attached, so a coding agent can triage and open a fix without searching raw telemetry.