sentry-error-capture

Installation
SKILL.md

Sentry Error Capture

Overview

Capture errors and enrich them with structured context so your team can diagnose production issues in seconds instead of hours. Covers captureException, captureMessage, scoped context (withScope / push_scope), breadcrumbs, custom fingerprinting, and beforeSend filtering using @sentry/node v8 and sentry-sdk v2 APIs.

Prerequisites

  • Sentry SDK installed and initialized (@sentry/node v8+ or sentry-sdk v2+)
  • A valid DSN configured via environment variable (SENTRY_DSN)
  • Understanding of try/catch (JS) or try/except (Python) error handling
  • A Sentry project created at sentry.io

Instructions

Step 1 -- Capture Exceptions with Full Stack Traces

Always pass real Error objects (or Python exception instances), never plain strings. Plain strings lose the stack trace, making debugging far harder.

Related skills
Installs
22
GitHub Stars
2.2K
First Seen
Feb 24, 2026