
Cloudflare Workers bổ sung tính năng giám sát lỗi Issues
"Cloudflare introduced Issues, an open beta built-in error monitoring feature for Cloudflare Workers that groups repeated exceptions, 5xx responses, and error logs into a single issue and can send the full diagnostic context to a configured coding agent. The workflow includes stack traces, logs, traces, Worker version, and application context, enabling automated triage and fix generation; the article cites two Workflows bugs found and resolved after deployment, including a SQLite foreign key migration retry loop and a deletion path that could exceed the Workers subrequest limit."
Giúp phát hiện sớm lỗi ứng dụng, giảm thời gian điều tra và hạn chế việc bỏ sót exception lặp lại hoặc 5xx trong sản xuất.
Có thể giảm thời gian triage, rút ngắn vòng sửa lỗi và cải thiện độ ổn định dịch vụ khi khối lượng sự cố tăng.
Cloudflare đã giới thiệu Issues, một tính năng open beta tích hợp sẵn cho Cloudflare Workers nhằm nhóm các lỗi lặp lại thành một sự cố duy nhất và chuyển toàn bộ ngữ cảnh chẩn đoán cho coding agent đã cấu hình. Tính năng này có thể gom exception, HTTP 5xx, và error logs vào cùng một issue, kèm stack trace, logs, traces, Worker version và ngữ cảnh ứng dụng để hỗ trợ triage và tạo bản sửa lỗi.
Theo mô tả, Issues hoạt động ngay trong Workers runtime, không cần cài SDK hay thêm wrapper ứng dụng. Khi bật, hệ thống ghi nhận uncaught exceptions, failed invocations, phản hồi 5xx, cùng các log từ console.log() và console.error() có stack trace. Người dùng cũng có thể bổ sung định danh như user.id, account.id và session.id bằng OpenTelemetry API tích hợp sẵn để xác định lỗi tập trung ở đâu.
Cloudflare cho biết có thể cấu hình Automations để gửi issue sang Claude Code, Cursor, Devin, webhook tùy chỉnh hoặc hệ thống chat/on-call. Trong ví dụ nội bộ, tính năng này đã giúp phát hiện hai lỗi trong Cloudflare Workflows: một vòng lặp retry liên quan đến SQLite foreign key và một luồng xóa có thể vượt Workers subrequest limit. Khuyến nghị kỹ thuật là bật giám sát sớm, gắn ngữ cảnh ứng dụng đầy đủ và kiểm tra kỹ pull request trước khi triển khai.