sentry-error-capture

Featured

Implement advanced error capture and context enrichment with Sentry. Use when adding captureException/captureMessage calls, enriching errors with user context, tags, breadcrumbs, or custom fingerprinting. Trigger with "sentry error capture", "sentry context", "enrich sentry errors", "sentry exception handling", "sentry breadcrumbs", "sentry fingerprint".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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](https://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. **TypeScript (`@sentry/node`)** ```typescript import * as Sentry from '@sentry/node'; // CORRECT -- full stack trace preserved try { await riskyOperation(); } catch (error) { Sentry.captureException(error); } // WRONG -- no stack trace, hard to debug Sentry.captureException('something went wrong'); // Wrapping non-Error values into proper Error objects Sentry.captureException(new Error(`API returned ${statusCode}: ${body}`)); // Capture with inline context (no scope needed for simple cases) Sentry.captureException(error, { tags: { transaction: 'purchase' }, extra: { orderId, amount }, })...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

sentry-sdk-patterns

Best practices for using Sentry SDK in TypeScript and Python. Use when implementing structured error context with scopes, breadcrumb strategies, beforeSend/beforeBreadcrumb filtering, custom fingerprinting, user context, or performance span creation. Trigger: "sentry best practices", "sentry patterns", "sentry sdk usage", "sentry scope", "sentry breadcrumbs", "sentry beforeSend", "sentry fingerprint".

2,266 Updated today
jeremylongshore
AI & Automation Featured

sentry-hello-world

Capture your first test error with Sentry and verify it appears in the dashboard. Use when testing a new Sentry integration, verifying error capture works after install-auth, or learning how to enrich events with user context, tags, and breadcrumbs. Trigger with phrases like "test sentry", "sentry hello world", "verify sentry", "first sentry error", "sentry capture test".

2,266 Updated today
jeremylongshore
Data & Documents Listed

error-tracking

Add Sentry v8 error tracking and performance monitoring to your project services. Use this skill when adding error handling, creating new controllers, instrumenting cron jobs, or tracking database performance. ALL ERRORS MUST BE CAPTURED TO SENTRY - no exceptions.

335 Updated today
aiskillstore
AI & Automation Listed

error-tracking-integrator

Adds comprehensive error tracking with Sentry, Rollbar, or similar services including error boundaries, context, and breadcrumbs. Use when user requests error monitoring or mentions production debugging.

335 Updated today
aiskillstore
AI & Automation Featured

sentry-observability

Integrate Sentry with your observability stack — logging, metrics, APM, and dashboards. Use when connecting Sentry to winston/pino/structlog, correlating errors with business metrics, deciding between Sentry performance and Datadog/New Relic, building Sentry Discover dashboards, or linking events to external tools via extra context. Trigger: "sentry observability", "sentry logging", "sentry metrics", "sentry grafana", "sentry datadog correlation", "sentry discover dashboard".

2,266 Updated today
jeremylongshore