getsentry avatar

Sentry Python Sdk

This is a comprehensive wizard for setting up Sentry in Python projects. It detects your framework (Django, Flask, FastAPI, Celery, etc.), scans for AI libraries like OpenAI or LangChain, then walks you through a complete configuration covering error monitoring, tracing, profiling, logging, and cron monitoring. The opinionated approach means it recommends specific sample rates and init locations rather than asking you to figure it out. Useful when you need full observability fast and don't want to piece together docs for every integration. The detection phase is smart enough to spot task queues and companion frontends, so it configures multi-process setups correctly. Best for greenfield setup or migrating from basic error tracking to full instrumentation.

skills.sh installs
384
GitHub stars
25
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/getsentry/sentry-agent-skills
Categories
DevOps & CI/CD, AI & Agent Building, Debugging, Python
First seen
Jun 3, 2026

More from getsentry/sentry-agent-skills

All 20
1evoscientist avatarexperiment-craftevoscientist/evoskillsUse this skill when the user wants to debug, diagnose, or systematically iterate on an experiment that already exists, or when they need a structured experiment380skills.sh installs
2pydantic avatarinstrumentationpydantic/skillsAdd Pydantic Logfire observability to applications. Use this skill whenever the user asks to "add logfire", "instrument with logfire", "add observability", "add380skills.sh installs
3aliyun avataralibabacloud-dataworks-data-opsaliyun/alibabacloud-aiops-skillsDataWorks Operations Center assistant for task and workflow operations, alert rule creation and management. Covers troubleshooting, failure recovery, baseline a379skills.sh installs
4davila7 avatarit-operationsdavila7/claude-code-templatesManages IT infrastructure, monitoring, incident response, and service reliability. Provides frameworks for ITIL service management, observability strategies, au379skills.sh installs
5zzci avatarpma-gozzci/skillsGo implementation guide for PMA-managed service and CLI projects. Covers project layout (cmd/internal), strict linting with golangci-lint v2, database access (s366skills.sh installs
6randroids-dojo avatargodotrandroids-dojo/skillsDevelop, test, build, and deploy Godot 4.x games. Use when working with Godot Engine, GDScript, GdUnit4 testing, PlayGodot automation, or exporting games to web365skills.sh installs