sentry

Sentry error monitoring and performance tracing patterns for Next.js applications.

By brianlovin · 2,099 installs

npx skills add brianlovin/agent-config --skill sentry

Source repository · Upstream listing

Sentry Integration Guidelines for using Sentry for error monitoring and performance tracing. Exception Catching Use Sentry.captureException(error) in try/catch blocks: Performance Tracing Create spans for meaningful actions like button clicks, API calls, and function calls. UI Actions API Calls Configuration (Next.js) Sentry initialization files: sentry.client.config.ts Client side sentry.server.config.ts Server side sentry.edge.config.ts Edge runtime Import with import as Sentry from "@sentry/nextjs" no need to initialize in other files. Basic Setup With Console Logging Structured Logging Use logger.fmt for template literals with variables: