error-tracking

Integrate Sentry v8 error tracking and performance monitoring into project services.

10.0k|1.2k|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/diet103/claude-code-infrastructure-showcase --skill error-tracking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-tracking
Source: https://github.com/diet103/claude-code-infrastructure-showcase/tree/main/.claude/skills/error-tracking
Command: npx skills add https://github.com/diet103/claude-code-infrastructure-showcase --skill error-tracking

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidance and best practices for integrating and utilizing Sentry for error tracking and performance monitoring, solving the problem of unhandled exceptions, performance bottlenecks, and a lack of actionable insights in both frontend and backend applications.

Core Features & Use Cases

  • Mandatory Error Capture: Ensures all unhandled exceptions and specific errors are automatically reported to Sentry with rich context.
  • Performance Monitoring: Guides on implementing tracing and performance spans for critical operations, helping identify and resolve bottlenecks.
  • Contextualized Reporting: Best practices for adding user, tag, and extra data to error reports, making debugging faster and more efficient.
  • Use Case: When a critical error occurs in your application, use this Skill to ensure it's automatically reported to Sentry with full user context, relevant tags, and a performance trace, allowing for rapid diagnosis and resolution without manual intervention.

Quick Start

Explain how to initialize Sentry in a Node.js application using instrument.ts and demonstrate how to manually capture an exception with custom tags and extra data.

Frequently Asked Questions about error-tracking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up error tracking with Sentry in my Node.js application?

Error tracking with Sentry starts with initializing the SDK in an `instrument.ts` file before your application boots, then importing that file at your app's entry point. This ensures all unhandled exceptions and manual captures are automatically reported to Sentry with full context and performance traces.

What's the best way to capture exceptions with custom context in Sentry?

Capture exceptions manually using Sentry's SDK methods, attaching custom tags and extra data to provide actionable debugging context. This enriches error reports with user information, request details, and application state, enabling faster diagnosis without manual investigation.

Can I monitor performance bottlenecks across controllers, routes, and database operations?

Yes. Sentry's performance monitoring creates spans across controllers, routes, cron jobs, and database queries to track operation timing and identify bottlenecks. This provides visibility into where your application spends time and where optimization efforts should focus.

Do I need Sentry to handle errors in both frontend and backend services?

Sentry supports comprehensive monitoring across frontend and backend. The same initialization patterns and error capture principles apply to both layers, ensuring all errors—regardless of origin—flow into a unified observability platform for centralized debugging.

What happens if I don't capture certain errors to Sentry?

This Skill enforces mandatory error capture: all errors must be reported to Sentry with no exceptions. Untracked errors remain invisible, preventing you from detecting issues in production and missing opportunities to resolve them before users are impacted.

How do I integrate Sentry with cron jobs and background workflows?

Integrate Sentry into cron job initialization and workflow handlers using the same instrumentation patterns as controllers and routes. This captures errors and performance data from scheduled tasks and async operations, providing end-to-end observability across your entire service architecture.