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/nodev8+ orsentry-sdkv2+) - 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