원클릭으로
adding-error-tracking
Add Sentry error tracking, performance monitoring, and source maps to a web application.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add Sentry error tracking, performance monitoring, and source maps to a web application.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use Cursor's browser aria snapshots to audit a page for accessibility issues — missing labels, broken tab order, contrast, and ARIA misuse.
Add PostHog analytics to a web application, including event tracking, page views, feature flags, and session replay.
Generate OpenAPI/Swagger documentation for an API, including endpoint schemas, request/response types, and interactive docs UI.
Add authentication to a web application using NextAuth.js (Auth.js), including OAuth providers, session management, and protected routes.
Dockerize an application with a production-ready Dockerfile, docker-compose setup, and .dockerignore.
Set up Playwright end-to-end testing in a project, including test configuration, example tests, and CI integration.
| name | adding-error-tracking |
| description | Add Sentry error tracking, performance monitoring, and source maps to a web application. |
Use this skill when the user asks to add error tracking, crash reporting, exception monitoring, or performance tracing.
Detect the framework — check package.json, config files, and directory structure to determine the stack (Next.js, React, Node.js, Python/Django/Flask, etc.).
Install the SDK
npx @sentry/wizard@latest -i nextjsnpm install @sentry/reactnpm install @sentry/nodepip install sentry-sdkInitialize Sentry
For Next.js, the wizard creates sentry.client.config.ts, sentry.server.config.ts, and sentry.edge.config.ts. Verify they exist and contain the DSN.
For React (Vite), init in main.tsx:
import * as Sentry from "@sentry/react";
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
integrations: [Sentry.browserTracingIntegration()],
tracesSampleRate: 1.0,
});
For Node.js, init at the very top of the entry file before any other imports.
Add environment variables
NEXT_PUBLIC_SENTRY_DSN=https://...@sentry.io/...
SENTRY_AUTH_TOKEN=sntrys_...
SENTRY_ORG=your-org
SENTRY_PROJECT=your-project
Add error boundary — wrap the app (or critical subtrees) with Sentry.ErrorBoundary and a fallback UI.
Source maps — for production builds, configure the Sentry webpack/vite plugin to upload source maps. For Next.js, this is handled by withSentryConfig in next.config.js.
Test the integration — add a temporary button that throws an error to verify events appear in the Sentry dashboard.
tracesSampleRate to a lower value (e.g. 0.1) in production to control costs.sentry.properties and .sentryclirc to .gitignore.SENTRY_AUTH_TOKEN.