Brifing

Cloudflare Launches AI-Powered Error Monitoring for Serverless Apps

New Issues feature automates debugging by connecting production errors directly to coding agents

Cloudflare Blog2 min

1Automated error grouping

Cloudflare Issues automatically groups repeated exceptions, 5xx responses, and error logs into single issues. It tracks when errors first appeared, their frequency trends, and whether they're increasing. The system captures stack traces, logs, traces, and Worker version data without requiring additional SDK installation. This native integration eliminates the need for manual telemetry reconstruction by agents.

2Contextual debugging data

Each issue provides complete diagnostic context including error details, source-mapped stack traces, surrounding logs and traces, and request information. Developers can enhance this with application-specific context using the built-in OpenTelemetry API to add user, account or session identifiers. This helps agents understand whether failures are concentrated in specific user segments before beginning investigation.

3Direct agent integration

Issues can automatically send error context to coding agents like Claude Code, Cursor, or Devin when thresholds are met. The system delivers failure summaries with all diagnostic data, enabling agents to immediately begin troubleshooting. For deeper analysis, agents can connect to Cloudflare MCP to query related logs and propose code changes through pull requests while maintaining human review gates.

4Real-world impact validation

Within one day of testing on Cloudflare Workflows, the system uncovered two production issues: a migration stuck in SQLite foreign key error loops and a deletion process exceeding subrequest limits. The automation sent these directly to Cloudflare OS, which traced the errors and proposed fixes. This demonstrated how Issues transforms debugging from manual telemetry analysis to automated agent-driven resolution.

5Configuration simplicity

Developers enable Issues with one configuration line in wrangler.jsonc, requiring no additional instrumentation. The system automatically captures uncaught exceptions, failed invocations, HTTP errors, console outputs, and stack trace logs. It also flags problematic patterns like runaway alarm conditions or excessive loop logging, providing comprehensive coverage without setup complexity.

6Workflow automation options

Teams can configure automations to route issues to different destinations based on occurrence thresholds or recurrence patterns. Options include built-in coding agents via API tokens, generic webhooks for custom agents, or team notification channels. Each automation delivers complete issue context, enabling the receiving system to immediately understand and act on the problem.

7Developer control maintained

While Issues automates error detection and agent notification, developers retain full control over production changes. Agents can only propose fixes through pull requests that require human review before deployment. This balances automation benefits with safety, ensuring automated debugging doesn't compromise system stability or introduce unvetted changes.

8Serverless debugging transformed

Cloudflare Issues represents a paradigm shift in production monitoring by closing the loop between error detection and resolution. By automating the handoff from observability to debugging agents, it eliminates manual context gathering and telemetry analysis. This could significantly reduce mean time to resolution for serverless applications while maintaining development best practices.

Original article: Cloudflare Blog — Cloudflare Launches AI-Powered Error Monitoring for Serverless Apps