Sentry Cookbook

Code breaks. These recipes fix it.

Recipes

Debugging | Intermediate | 15-20 minutes

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.

LogsSession ReplayTracing React NativeNode.js
Monitoring | Beginner | 10-15 minutes

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.

AI ObservabilityTracingError Monitoring Node.jsPython
Debugging | Beginner | 10-15 minutes

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.

SeerTracingError Monitoring
Workflow | Beginner | 15-20 minutes

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.

PerformanceTracingSeer
Debugging | Intermediate | 20-30 minutes

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.

LogsTracingSession Replay JavaScriptNode.js
Performance | Intermediate | 20-30 minutes

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.

TracingAlertsDashboards React NativePython
Workflow | Beginner | ~15 minutes

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.

IssuesAlerts
Monitoring | Beginner | 10 minutes

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.

AI Observability Node.js
Monitoring | Beginner | 10 minutes

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.

TracingAI Observability
Monitoring | Beginner | 10 minutes

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.

TracingAI Observability
Monitoring | Beginner | 15–20 minutes

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.

AI ObservabilityTracing Next.js

Fix it

Get started with the only application monitoring platform that empowers developers to fix application problems without compromising on velocity.