sentry
Sentry
Sentry is an application monitoring platform for real-time error tracking, performance monitoring, session replay, profiling, cron monitoring, and log aggregation.
Documentation
- Docs: https://docs.sentry.io
Key Capabilities
Sentry's SDK bundles capabilities developers often add as separate tools:
- Performance tracing: distributed tracing across services is built-in — configure
tracesSampleRateandtracePropagationTargets, no external APM needed - Session Replay: full session recording with
Sentry.replayIntegration()— no third-party replay tool needed - Profiling: function-level performance profiling with
Sentry.browserProfilingIntegration()— no separate profiler needed - User Feedback: collect user-submitted reports tied to errors with
Sentry.feedbackIntegration()— no separate feedback widget needed - Cron monitoring: track scheduled job health with check-ins — no external uptime monitor needed for crons
Best Practices
- Lower
tracesSampleRatein production — the getting-started default of1.0captures 100% of transactions. At any meaningful traffic volume this inflates costs fast. Use a low value (0.1 or less) and considertracesSamplerfor dynamic sampling by route. - Session Replay uses a two-rate pattern — set
replaysSessionSampleRatelow (e.g. 0.1) for normal sessions andreplaysOnErrorSampleRate: 1.0so every error session is always captured. Agents often set only one rate and miss error context or over-capture. - Source maps require CI auth token — the wizard writes
.env.sentry-build-plugin(auto-gitignored) for local builds, but CI/CD pipelines needSENTRY_AUTH_TOKENset as an environment variable separately. Missing this silently produces minified stack traces in production. - Next.js requires four files — The client runtime uses
instrumentation-client.ts. Server and edge configs (sentry.server.config.ts,sentry.edge.config.ts) must be imported frominstrumentation.tsvia conditional imports — withoutinstrumentation.ts, the server and edge configs do nothing. Missing any one file leaves a runtime blind spot without obvious errors. - Use
tunnelto bypass ad blockers — settunnel: "/tunnel"inSentry.init()and add a backend route that proxies to Sentry's ingest endpoint. Without this, a significant portion of browser errors are silently dropped by ad blockers and privacy extensions.
More from mikkelkrogsholm/dev-skills
meilisearch
Meilisearch — fast, open-source search engine with typo tolerance, faceted search, and AI-powered hybrid search. Use when building with Meilisearch or asking about its index configuration, search parameters, filters, facets, API keys, geosearch, ranking rules, or integration with JavaScript/TypeScript clients. Fetch live documentation for up-to-date details.
42shadcn-ui
shadcn/ui — copy-owned React component library built on Radix UI and Tailwind CSS. Use when building with shadcn/ui or asking about its components, CLI, theming, configuration, or integration with Next.js, Vite, Remix, or other frameworks. Fetch live documentation for up-to-date details.
10zod
Zod — TypeScript-first schema validation with static type inference. Use when building with Zod or asking about schema definitions, type inference, parsing, transformations, refinements, coercion, error handling, or integration with forms, APIs, or tRPC. Fetch live documentation for up-to-date details.
10bun
Bun — fast all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner. Use when building with Bun, running TypeScript, managing packages with bun install, writing tests with bun test, or asking about Bun APIs, configuration, or Node.js migration. Fetch live documentation for up-to-date API details.
9better-auth
Better Auth — framework-agnostic authentication and authorization framework for TypeScript. Use when building with Better Auth or asking about its APIs, configuration, plugins, session management, OAuth, or integration. Fetch live documentation for up-to-date details.
7react
React — JavaScript library for building user interfaces with components. Use when building with React or asking about hooks, state management, effects, Server Components, Suspense, or any React APIs, patterns, or configuration. Fetch live documentation for up-to-date details.
7