Skip to content
getsentry avatar

Sentry Python Sdk

Full Sentry SDK setup for Python covering errors, tracing, profiling, logs, metrics, crons, and AI monitoring.

CCM score
61 of 100
skills.sh installs
359
GitHub stars
25
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers error monitoring, tracing, profiling, logging, metrics, crons, and AI monitoring for Python applications
  • Includes a detect, recommend, and guide workflow with per-feature reference files for each monitoring area
  • Provides a recommended sentry_sdk.init() block and framework-specific placement notes for Django, Flask, FastAPI, and Celery
  • Designed for Python projects using Django, Flask, FastAPI, Starlette, Celery, AIOHTTP, Tornado, or similar frameworks

Install

$ npx -y skills add getsentry/sentry-agent-skills --skill sentry-python-sdk -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Sentry Python SDK

Opinionated wizard that scans your Python project and guides you through complete Sentry setup.

Invoke This Skill When

  • User asks to "add Sentry to Python" or "setup Sentry" in a Python app
  • User wants error monitoring, tracing, profiling, logging, metrics, or crons in Python
  • User mentions sentry-sdk, sentry_sdk, or Sentry + any Python framework
  • User wants to monitor Django views, Flask routes, FastAPI endpoints, Celery tasks, or scheduled jobs

Note: SDK versions and APIs below reflect Sentry docs at time of writing (sentry-sdk 2.x). Always verify against docs.sentry.io/platforms/python/ before implementing.


Phase 1: Detect

Run these commands to understand the project before making recommendations:

# Check existing Sentry
grep -i sentry requirements.txt pyproject.toml setup.cfg setup.py 2>/dev/null

# Detect web framework
grep -rE "django|flask|fastapi|starlette|aiohttp|tornado|quart|falcon|sanic|bottle" \
  requirements.txt pyproject.toml 2>/dev/null

# Detect task queues
grep -rE "celery|rq|huey|arq|dramatiq" requirements.txt pyproject.toml 2>/dev/null

Details

Repository
github.com/getsentry/sentry-agent-skills
Categories
Debugging, Python
First seen
Jun 3, 2026

Questions

Is sentry-python-sdk a good Python debugging skill for error monitoring?

sentry-python-sdk is a Sentry SDK setup wizard for Python that scans your project and configures error monitoring, tracing, profiling, logging, metrics, crons and AI monitoring. It is listed in the Debugging category on Claude Marketplaces, with diagnosing-bugs, azure-messaging, safe-debug, systematic-debugging and sentry-cli as other top skills there.

Which Python frameworks does the sentry-python-sdk skill support?

The sentry-python-sdk skill supports Django, Flask, FastAPI, Celery, Starlette, AIOHTTP, Tornado and more. It also tells you where to place sentry_sdk.init() for each framework, such as settings.py in Django or before app creation in Flask.

How do I install the sentry-python-sdk skill?

Run npx -y skills add getsentry/sentry-agent-skills --skill sentry-python-sdk -y in a project to install it. After that, the agent can use it to add Sentry to Python apps and guide the setup of the sentry-sdk package.

More from getsentry/sentry-agent-skills

All 8

Similar to Sentry Python Sdk

More Debugging