Sentry Cookbook
Code breaks. These recipes fix it.
Recipes
Debug undefined properties in React Native with Sentry Logs
Use Sentry Logs to determine whether an undefined property is a first-render timing issue in your React Native app or actually missing from your backend API response.
Monitor your MCP server with Sentry
Wrap your MCP server with a single function call to get full visibility into client activity, transport distribution, tool and resource performance, and errors — including the silent ones MCP hides from you.
Fix production issues in Cursor using the Sentry MCP server and Seer
Use the Sentry MCP server in Cursor to pull issues from your projects, trigger Seer root cause analysis, and apply fixes directly in your IDE — no copy-pasting stack traces required.
Automate weekly performance triage with Claude Code + Sentry MCP
Set up a recurring Claude Code task that queries Sentry for your slowest endpoints every Monday, analyzes the root cause, and opens a GitHub PR with the fix. No custom bot infrastructure required.
Replace console.log with structured, trace-connected logging using LogTape and Sentry
Move from noisy string logs to structured, queryable, trace-connected events that help you debug production issues across your entire stack.
Track and fix checkout performance in React Native with Sentry tracing
Instrument tracing for a React Native app with a Python backend to find slow HTTP requests in your checkout flow, fix them, and set up alerts and dashboards to stay on top of regressions.
Auto-create and triage issues in Linear for your worst bugs
Set up an automated pipeline from error detection to AI-powered root cause analysis. Sentry catches the bug, creates a Linear issue via an alert rule, and the Sentry agent finds the root cause and suggests a code fix — all without leaving Linear.
Monitor your OpenCode sessions with Sentry
Add the opencode-sentry-monitor plugin to get full visibility into tool calls, token usage, and model costs across every OpenCode session.
Monitor your Claude Code sessions with Sentry
Add the claude-code-sentry-monitor plugin to get full visibility into tool calls and agent behavior across every Claude Code session.
Monitor your pi coding agent sessions with Sentry
Add the pi-sentry-monitor extension to get full visibility into tool calls, token usage, and model costs across every pi session.
Monitor your AI agent costs and calls in Next.js
Connect Sentry to your Vercel AI SDK app and get instant visibility into token usage, LLM costs, tool calls, and agent traces.
No recipes match your filters.
Fix it
Get started with the only application monitoring platform that empowers developers to fix application problems without compromising on velocity.