> sentry
Assists with monitoring application errors, performance, and user experience using Sentry. Use when integrating Sentry SDKs, configuring alerting, analyzing stack traces, uploading source maps, or tracking release health in production. Trigger words: sentry, error monitoring, error tracking, performance monitoring, source maps, session replay.
curl "https://skillshub.wtf/TerminalSkills/skills/sentry?format=md"Sentry
Overview
Sentry is an error monitoring and performance platform that captures unhandled exceptions, tracks request performance with Web Vitals, records session replays, and alerts on regressions. It supports JavaScript, Python, Go, and mobile platforms with auto-instrumentation, source-mapped stack traces, and release health tracking.
Instructions
- When integrating the SDK, call
Sentry.init()withdsn,environment,release, andtracesSampleRate, choosing the framework-specific SDK (@sentry/nextjs,@sentry/sveltekit,sentry-sdkfor Python) for automatic instrumentation. - When configuring error tracking, set up
Sentry.setUser()after login for user correlation, add custom tags withSentry.setTag()for filtering, and configureignoreErrorsfor known harmless errors from browser extensions and third-party scripts. - When uploading source maps, use
@sentry/vite-pluginor@sentry/webpack-pluginin the CI build step to map minified stack traces back to original source code, associating them with the release version. - When monitoring performance, set
tracesSampleRateto 0.1-0.2 in production, add custom spans withSentry.startSpan()for business-critical operations, and monitor Web Vitals (LCP, CLS, INP) for real user experience. - When setting up alerts, configure rules for error rate spikes rather than individual errors, integrate with Slack or PagerDuty, and filter by environment and error level.
- When using session replay, set
replaysOnErrorSampleRate: 1.0for all error sessions andreplaysSessionSampleRate: 0.1for general sampling, with privacy masking for sensitive data.
Examples
Example 1: Set up Sentry for a Next.js production app
User request: "Add Sentry error monitoring and performance tracking to my Next.js app"
Actions:
- Install
@sentry/nextjsand run the setup wizard to configuresentry.client.config.tsandsentry.server.config.ts - Configure
Sentry.init()with environment, release, andtracesSampleRate: 0.2 - Add source map upload to the CI build pipeline with
@sentry/nextjswebpack integration - Set up Slack alerts for error rate spikes in the production environment
Output: A Next.js app with automatic error capture, source-mapped stack traces, performance monitoring, and Slack alerting.
Example 2: Track release health and identify regressions
User request: "Set up release tracking to identify which deployment introduced a bug"
Actions:
- Configure
releaseinSentry.init()using the git commit SHA or semantic version - Integrate with GitHub to link releases to commits for suspect commit detection
- Set up deploy tracking to mark when releases go to staging and production
- Configure regression alerts that notify when a previously resolved issue reappears
Output: Release health monitoring with crash-free session tracking, suspect commits, and regression alerts.
Guidelines
- Set
tracesSampleRateto 0.1-0.2 in production since 100% sampling is expensive and unnecessary. - Upload source maps in CI since unreadable minified stack traces are not useful for debugging.
- Set
environmentandreleaseon everySentry.init()call to filter errors by staging versus production. - Use
Sentry.setUser()after login to correlate errors with specific users for support. - Configure alert rules for error rate spikes rather than individual errors to reduce noise.
- Set
ignoreErrorsfor known harmless errors from browser extensions, network timeouts, and third-party scripts.
> related_skills --same-repo
> zustand
You are an expert in Zustand, the small, fast, and scalable state management library for React. You help developers manage global state without boilerplate using Zustand's hook-based stores, selectors for performance, middleware (persist, devtools, immer), computed values, and async actions — replacing Redux complexity with a simple, un-opinionated API in under 1KB.
> zoho
Integrate and automate Zoho products. Use when a user asks to work with Zoho CRM, Zoho Books, Zoho Desk, Zoho Projects, Zoho Mail, or Zoho Creator, build custom integrations via Zoho APIs, automate workflows with Deluge scripting, sync data between Zoho apps and external systems, manage leads and deals, automate invoicing, build custom Zoho Creator apps, set up webhooks, or manage Zoho organization settings. Covers Zoho CRM, Books, Desk, Projects, Creator, and cross-product integrations.
> zod
You are an expert in Zod, the TypeScript-first schema declaration and validation library. You help developers define schemas that validate data at runtime AND infer TypeScript types at compile time — eliminating the need to write types and validators separately. Used for API input validation, form validation, environment variables, config files, and any data boundary.
> zipkin
Deploy and configure Zipkin for distributed tracing and request flow visualization. Use when a user needs to set up trace collection, instrument Java/Spring or other services with Zipkin, analyze service dependencies, or configure storage backends for trace data.