sentry-python-sdk

Guide Python developers to instrument apps with Sentry for errors, performance, and logging.

20|3|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/getsentry/sentry-agent-skills --skill sentry-python-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-python-sdk
Source: https://github.com/getsentry/sentry-agent-skills/tree/main/skills/sentry-python-sdk
Command: npx skills add https://github.com/getsentry/sentry-agent-skills --skill sentry-python-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Opinionated wizard that scans your Python project and guides you through complete Sentry setup, ensuring you cover error monitoring, tracing, profiling, logging, metrics, crons, and AI monitoring.

Core Features & Use Cases

  • Framework-aware detection and placement guidance for sentry_sdk.init() across Django, Flask, FastAPI, Celery, Starlette, AIOHTTP, Tornado, and more.
  • Auto-enabled integrations and sane defaults for common observability needs, with framework-specific extras recommended as needed.
  • Phase-by-phase guidance (detect, recommend, guide, cross-link) to implement production-ready Sentry instrumentation quickly.

Quick Start

Install the Sentry Python SDK and run the wizard to auto-detect project settings and generate initialization code.

Frequently Asked Questions about sentry-python-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Sentry error monitoring and tracing in a Python app?

To set up Sentry error monitoring and tracing in a Python app, run an opinionated wizard to scan your project and generate the `sentry_sdk.init()` code with sane defaults and framework-specific placements.

Does the Sentry Python SDK support automatic instrumentation for FastAPI and Django?

Yes, the Sentry Python SDK supports FastAPI and Django by providing framework-aware detection, auto-enabled integrations, and specific placement guidance for `sentry_sdk.init()` across these and other Python frameworks.

What is the best way to configure Sentry SDK for performance profiling and logging?

The best way to configure Sentry SDK for performance profiling and logging is to use a guided wizard that applies sane defaults, auto-enables integrations based on installed packages, and ensures complete observability coverage.

Can I use Sentry to monitor Celery tasks and asynchronous Python frameworks?

Yes, you can use Sentry to monitor Celery tasks and asynchronous Python frameworks like Starlette and AIOHTTP. The SDK provides automatic instrumentation and framework-specific integrations for these environments.

Why do I need to run a setup wizard for Sentry instrumentation instead of just installing the SDK?

You need a setup wizard for Sentry instrumentation because it scans your project to detect installed frameworks, recommends necessary framework-specific extras, and guides you through phase-by-phase implementation for production-ready observability.