# Sentry Cookbook: Debugging & Monitoring Recipes

> Step-by-step recipes for debugging, monitoring, and fixing issues with Sentry.

**URL:** https://sentry.io/cookbook/

---

41 recipes to help you find and fix issues faster.

## All Recipes
- [Connect Sentry to Devin Oncall](https://sentry.io/cookbook/devin-oncall-sentry/) — Beginner | ~5 minutes
- [Trace Claude Managed Agents and the Messages API in Sentry](https://sentry.io/cookbook/trace-claude-platform-with-opentelemetry/) — Beginner | 5 minutes
- [Trace the Claude Python SDK in Sentry with OpenTelemetry](https://sentry.io/cookbook/trace-claude-python-sdk-with-opentelemetry/) — Beginner | 10-15 minutes | SDKs: Python
- [Trace the Claude TypeScript SDK in Sentry with OpenTelemetry](https://sentry.io/cookbook/trace-claude-typescript-sdk-with-opentelemetry/) — Beginner | 10-15 minutes | SDKs: Node.js
- [Set up Sentry in an Expo React Native app](https://sentry.io/cookbook/set-up-sentry-expo-react-native/) — Beginner | 15-20 minutes | SDKs: React Native
- [Monitor a Mistral Support Agent With Sentry](https://sentry.io/cookbook/monitor-mistral-with-sentry/) — Intermediate | 15–20 minutes | SDKs: Node.js
- [Customize Session Replay Sampling with a Custom React Hook](https://sentry.io/cookbook/customize-session-replay-sampling-hook/) — Intermediate | 10-15 minutes | SDKs: React, Next.js
- [Instrument Flue agents with Sentry](https://sentry.io/cookbook/instrument-flue-agents-with-sentry/) — Intermediate | 15 minutes | SDKs: Node.js
- [Instrument Vercel eve agents with Sentry](https://sentry.io/cookbook/send-eve-agent-traces-to-sentry/) — Beginner | 10 minutes | SDKs: Node.js
- [Monitor LLM spend with Sentry dashboards and alerts](https://sentry.io/cookbook/monitor-ai-agent-spend-with-dashboards-and-alerts/) — Intermediate | 20 minutes
- [Monitor Neon Functions with Sentry](https://sentry.io/cookbook/monitor-neon-functions-sentry/) — Intermediate | 15–20 minutes | SDKs: Node.js
- [Adopt structured logging for faster debugging](https://sentry.io/cookbook/structure-your-logs/) — Intermediate | 30-40 minutes
- [Automate AI agent error triage with Claude Routines](https://sentry.io/cookbook/automate-ai-agent-triage-claude-routines/) — Intermediate | 15-20 minutes
- [Investigate and Fix Issues with Seer AI Debugging Agent](https://sentry.io/cookbook/seer-agent-use-cases/) — Beginner | 10–15 minutes
- [Build a dashboard and alert from Next.js custom metrics](https://sentry.io/cookbook/custom-metrics-dashboard-alerts-nextjs/) — Intermediate | 20-25 minutes | SDKs: Next.js
- [Build AI agent evals from production conversations](https://sentry.io/cookbook/agent-conversations-to-evals/) — Intermediate | 20-30 minutes | SDKs: Next.js, Node.js
- [Install the Sentry Plugin in Your Coding Agent](https://sentry.io/cookbook/install-sentry-plugin-coding-agent/) — Beginner | 5 minutes
- [Connect Your Source Code with the Sentry GitLab Integration](https://sentry.io/cookbook/connect-sentry-to-gitlab/) — Beginner | ~5-10 minutes
- [Build an automated debugging workflow with Seer](https://sentry.io/cookbook/self-healing-workflow-seer/) — Intermediate | 20–30 minutes
- [Debug and fix production issues with Sentry MCP in Warp](https://sentry.io/cookbook/debug-with-sentry-mcp-warp/) — Beginner | 10–15 minutes
- [Fix Issues from Slack with the Sentry Slack Integration](https://sentry.io/cookbook/fix-sentry-issues-from-slack/) — Beginner | ~10 minutes
- [Turn Supabase Security Advisories into Sentry Issues](https://sentry.io/cookbook/supabase-advisories-to-sentry-issues/) — Intermediate | 15–20 minutes
- [Monitor and alert on a Supabase log drain](https://sentry.io/cookbook/setup-supabase-log-drain-monitoring/) — Intermediate | 15-20 minutes
- [Auto-fix regressed Sentry issues with Cursor Automations](https://sentry.io/cookbook/regressed-issue-to-pr-cursor/) — Intermediate | 20–30 minutes
- [Use @vercel/otel with Sentry to trace Vercel AI SDK calls](https://sentry.io/cookbook/vercel-ai-sdk-otel-sentry/) — Intermediate | 15–20 minutes | SDKs: Next.js, JavaScript
- [Auto-Fix Sentry User Feedback with Cursor Automations](https://sentry.io/cookbook/fix-user-feedback-with-cursor-agents/) — Intermediate | 20–30 minutes
- [Send OpenTelemetry Traces to Sentry in Next.js](https://sentry.io/cookbook/route-opentelemetry-traces-to-sentry/) — Beginner | 15–20 minutes | SDKs: Next.js
- [Create Sentry Dashboards with Your AI Coding Agent](https://sentry.io/cookbook/create-dashboards-with-ai-agent/) — Beginner | 10-15 minutes
- [Write Incident Playbooks in Sentry Dashboard Widgets](https://sentry.io/cookbook/playbooks-in-dashboard-markdown-widgets/) — Beginner | 3 minutes
- [Debug and fix issues with Sentry MCP in Claude Code](https://sentry.io/cookbook/debug-with-sentry-mcp-claude-code/) — Beginner | 10–15 minutes
- [Track Vercel AI SDK costs and LLM calls in Next.js](https://sentry.io/cookbook/monitor-ai-agent-costs-nextjs/) — Beginner | 10–15 minutes | SDKs: Next.js
- [Monitor your pi coding agent sessions with Sentry](https://sentry.io/cookbook/monitor-pi-with-sentry/) — Beginner | 10 minutes
- [Monitor Claude Code Usage and Costs with Sentry](https://sentry.io/cookbook/monitor-claude-code-with-sentry/) — Beginner | 10 minutes
- [Monitor OpenCode Token Usage and Costs with Sentry](https://sentry.io/cookbook/monitor-opencode-with-sentry/) — Beginner | 10 minutes | SDKs: Node.js
- [Auto-Triage Bugs with the Sentry Linear Integration](https://sentry.io/cookbook/fix-bugs-sentry-agent-linear/) — Beginner | ~15 minutes
- [Debug 'Undefined Is Not an Object' in React Native](https://sentry.io/cookbook/debug-undefined-react-native/) — Intermediate | 15-20 minutes | SDKs: React Native, Node.js
- [Fix production issues in Cursor with Sentry MCP and Seer](https://sentry.io/cookbook/fix-issues-sentry-mcp-cursor/) — Beginner | 10-15 minutes
- [Monitor Your MCP Server with Sentry: Tools & Errors](https://sentry.io/cookbook/monitor-mcp-server/) — Beginner | 10-15 minutes | SDKs: Node.js, Python
- [Automate weekly performance triage with Claude Code](https://sentry.io/cookbook/performance-bot-sentry-claude/) — Beginner | 15-20 minutes
- [Replace console.log with structured logging using LogTape](https://sentry.io/cookbook/structured-logging-logtape/) — Intermediate | 20-30 minutes | SDKs: JavaScript, Node.js
- [Fix React Native Performance in a Slow Checkout Flow](https://sentry.io/cookbook/track-checkout-performance-react-native/) — Intermediate | 20-30 minutes | SDKs: React Native, Python

---

*Source: [sentry.io/cookbook/](https://sentry.io/cookbook/)*
