What problem does it solve?
This Skill standardizes Sentry integration across the application, ensuring consistent error tracking, performance monitoring, and debugging information, leading to faster issue resolution and improved system observability.
Core Features & Use Cases
- Consistent Context & Breadcrumbs: Enforces setting relevant context at the start of operations and adding breadcrumbs for successful business logic and external service calls.
- Granular Error Capture: Guides the capture of non-critical failures as
WARNING level exceptions without halting operations, and proper handling of critical errors.
- Performance Monitoring: Ensures
Sentry.startSpan is used for tracking long-running operations and server action performance.
- Use Case: When adding Sentry monitoring to an existing server action, this Skill ensures it sets relevant context (e.g.,
SENTRY_CONTEXTS.USER_DATA) at the start, adds an INFO level breadcrumb upon successful completion, and captures any cache invalidation failures as WARNING exceptions.
Quick Start
Add Sentry monitoring to an existing server action, ensuring it sets relevant context at the start, adds an INFO level breadcrumb on success, and captures non-critical failures as WARNING exceptions.