{"slug":"adding-error-tracking","title":"adding-error-tracking","summary":"Add Sentry error tracking, performance monitoring, and source maps to a web application.","platform":"Cursor","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-08-12T22:23:28.073987Z","repo":{"url":"https://github.com/spencerpauly/awesome-cursor-skills","stars":896,"forks":220,"license":"CC0-1.0","updatedAt":"2026-08-02T02:41:53Z"},"bodyHtml":"<hr>\n<h2>name: adding-error-tracking\ndescription: Add Sentry error tracking, performance monitoring, and source maps to a web application.</h2>\n<h1>Add Error Tracking (Sentry)</h1>\n<p>Use this skill when the user asks to add error tracking, crash reporting, exception monitoring, or performance tracing.</p>\n<h2>Steps</h2>\n<ol>\n<li><p><strong>Detect the framework</strong> — check <code>package.json</code>, config files, and directory structure to determine the stack (Next.js, React, Node.js, Python/Django/Flask, etc.).</p>\n</li>\n<li><p><strong>Install the SDK</strong></p>\n<ul>\n<li>Next.js: <code>npx @sentry/wizard@latest -i nextjs</code></li>\n<li>React (Vite): <code>npm install @sentry/react</code></li>\n<li>Node.js: <code>npm install @sentry/node</code></li>\n<li>Python: <code>pip install sentry-sdk</code></li>\n</ul>\n</li>\n<li><p><strong>Initialize Sentry</strong></p>\n<ul>\n<li><p>For Next.js, the wizard creates <code>sentry.client.config.ts</code>, <code>sentry.server.config.ts</code>, and <code>sentry.edge.config.ts</code>. Verify they exist and contain the DSN.</p>\n</li>\n<li><p>For React (Vite), init in <code>main.tsx</code>:</p>\n<pre><code>import * as Sentry from \"@sentry/react\";\n\nSentry.init({\n  dsn: import.meta.env.VITE_SENTRY_DSN,\n  integrations: [Sentry.browserTracingIntegration()],\n  tracesSampleRate: 1.0,\n});\n</code></pre>\n</li>\n<li><p>For Node.js, init at the very top of the entry file before any other imports.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Add environment variables</strong></p>\n<pre><code>NEXT_PUBLIC_SENTRY_DSN=https://...@sentry.io/...\nSENTRY_AUTH_TOKEN=sntrys_...\nSENTRY_ORG=your-org\nSENTRY_PROJECT=your-project\n</code></pre>\n</li>\n<li><p><strong>Add error boundary</strong> — wrap the app (or critical subtrees) with <code>Sentry.ErrorBoundary</code> and a fallback UI.</p>\n</li>\n<li><p><strong>Source maps</strong> — for production builds, configure the Sentry webpack/vite plugin to upload source maps. For Next.js, this is handled by <code>withSentryConfig</code> in <code>next.config.js</code>.</p>\n</li>\n<li><p><strong>Test the integration</strong> — add a temporary button that throws an error to verify events appear in the Sentry dashboard.</p>\n</li>\n</ol>\n<h2>Notes</h2>\n<ul>\n<li>Set <code>tracesSampleRate</code> to a lower value (e.g. <code>0.1</code>) in production to control costs.</li>\n<li>Add <code>sentry.properties</code> and <code>.sentryclirc</code> to <code>.gitignore</code>.</li>\n<li>Never commit <code>SENTRY_AUTH_TOKEN</code>.</li>\n</ul>\n","files":[{"path":"SKILL.md","sizeBytes":2024,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-08-12T22:23:43.737511Z","sha256":"BB6F0547E2B1BFA7B3CC329DAE8901C5F3E1BF8446AD7FC26052BF2533C338A1","sizeBytes":1168},"review":null,"source":{"repositoryUrl":"https://github.com/spencerpauly/awesome-cursor-skills","path":"resources/adding-error-tracking","license":"CC0-1.0","commit":"99cd2655788456cc1c685944dcf8c2de82c1ded4","subtreeSha":"6F46390F619A80E6D63E4FFABD482FCFAAA868F9A98BCC5AFFBD71038F1A38CC","lastSyncedAt":"2026-11-19T20:53:18.054981Z"},"reviewedAt":"2026-08-12T22:24:21.578537Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/spencerpauly/awesome-cursor-skills/tree/main/resources/adding-error-tracking"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install spencerpauly-awesome-cursor-skills@llmmart"},{"target":"git","command":"git clone https://github.com/spencerpauly/awesome-cursor-skills.git"}]}