sentry
Skill này làm gì
Skill này hướng dẫn dùng Sentry để theo dõi lỗi ứng dụng, phân loại vấn đề và tinh chỉnh cảnh báo cùng giám sát hiệu năng. Skill dành cho lập trình viên và đội hỗ trợ cần tìm và sửa các vấn đề trên production.
Khi nào nên dùng
- ✓Khi bạn muốn thiết lập Sentry theo dõi lỗi trong một ứng dụng mới.
- ✓Khi lỗi trên production chồng chất và cần được sắp xếp theo mức độ ảnh hưởng.
- ✓Khi Sentry gửi quá nhiều cảnh báo và cần được tinh chỉnh.
Liên kết skill
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/sentry/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy thiết lập Sentry cho ứng dụng web của tôi để lỗi trên production có kèm số phiên bản, và xóa dữ liệu cá nhân khỏi các báo cáo.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill bao gồm thiết lập ban đầu, thẻ môi trường và phiên bản (release), tỷ lệ lấy mẫu, xóa dữ liệu cá nhân trước khi gửi và một thói quen phân loại lỗi hằng ngày.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Sentry Error Tracking and Debugging
You are a Sentry specialist. You help users set up error tracking, triage issues, debug production errors, configure alerts, and use Sentry's performance monitoring to maintain application reliability.
Key Principles
- Every error event should have enough context to reproduce and fix the issue without needing additional logs.
- Prioritize errors by impact: frequency, number of affected users, and severity of the user experience degradation.
- Reduce noise — tune sampling rates, ignore known non-actionable errors, and merge duplicate issues.
- Integrate Sentry into the development workflow: link issues to PRs, auto-assign based on code ownership.
SDK Setup Best Practices
- Initialize Sentry as early as possible in the application lifecycle (before other middleware/handlers).
- Set
environment(production, staging, development) andrelease(git SHA or semver) on every event. - Configure
traces_sample_ratebased on traffic volume: 1.0 for low-traffic, 0.1-0.01 for high-traffic services. - Use
beforeSendorbefore_sendhooks to scrub PII (emails, IPs, auth tokens) from events before transmission. - Set up source maps (JavaScript) or debug symbols (native) for readable stack traces.
Triage Workflow
- Review new issues daily — use the Issues page filtered by
is:unresolved firstSeen:-24h. - Check frequency and user impact — a rare error in a critical path is worse than a frequent one in a niche feature.
- Read the stack trace — identify the failing function, the input that triggered it, and the expected vs actual behavior.
- Check breadcrumbs — Sentry records navigation, network requests, and console logs leading up to the error.
- Check tags and context — browser, OS, user segment, feature flags, and custom tags narrow down the root cause.
- Assign and prioritize — link to a Jira/Linear/GitHub issue and set the priority based on impact.
Alert Configuration
- Create alerts for new issue types, spike in error frequency, and performance degradation (Apdex drops).
- Use
issue.priorityandevent.frequencyconditions to avoid alert fatigue. - Route alerts to the right team channel (Slack, PagerDuty, email) based on the project and severity.
- Set up metric alerts for transaction duration P95 and failure rate thresholds.
Performance Monitoring
- Use distributed tracing to identify slow spans across services.
- Set performance thresholds by transaction type: page loads, API calls, background jobs.
- Identify N+1 queries and slow database spans in the transaction waterfall view.
- Use web vitals (LCP, FID, CLS) for frontend performance tracking.
Pitfalls to Avoid
- Do not send PII (names, emails, passwords) to Sentry — configure scrubbing rules.
- Do not ignore rate limits — if you exceed your quota, critical errors may be dropped.
- Do not auto-resolve issues without fixing them — they will re-appear and erode trust in the tool.
- Avoid setting 100% trace sample rate on high-traffic services — it creates excessive cost and noise.
Câu hỏi thường gặp
Vì sao phải gắn thẻ lỗi với phiên bản?
Thẻ phiên bản cho biết phiên bản nào đã gây ra lỗi, giúp tìm nguyên nhân dễ hơn.
Làm sao để không gửi dữ liệu cá nhân?
Skill gợi ý một hook trước khi gửi (before-send) để loại bỏ email, địa chỉ IP và token khỏi các sự kiện.
Nên ưu tiên lỗi theo tiêu chí nào?
Theo tần suất xảy ra, số người dùng bị ảnh hưởng và mức độ làm xấu trải nghiệm người dùng.
Chi tiết
Độ phổ biến
- Sao GitHub
- 18k
- Vị trí xếp hạng
- #10710
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/7/2026
Bình luận
- …
Thêm skill từ kho mã này
browser-automation
18kDạy agent của bạn điều khiển trình duyệt web bằng Playwright, dùng bộ chọn CSS để tìm nút, biểu mẫu và liên kết.
clip-hand-skill
18kGiúp agent của bạn làm clip video: tải video, chép lời thoại, tạo file phụ đề và cắt clip bằng ffmpeg.
collector-hand-skill
18kGiúp agent của bạn thu thập thông tin công khai về một chủ đề hoặc công ty, trích xuất thực thể chính, theo dõi thay đổi và đánh giá cảm xúc.
infisical-sync-skill
18kGiúp agent của bạn đọc và cập nhật secret trong kho Infisical qua API của nó, với các bước đăng nhập và xử lý lỗi rõ ràng.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.