
Sentry Python Sdk
This is a comprehensive setup wizard for Sentry's Python SDK that actually scans your project first. It detects your framework (Django, Flask, FastAPI, etc.), checks for OpenTelemetry tracing, finds AI libraries like OpenAI or LangChain, and then recommends a specific config instead of asking you twenty questions. The opinionated part is real: it tells you exactly where to put sentry_sdk.init() for each framework, handles the dual-process init pain for Celery, and routes you to OTLP integration if you already have OTel instrumentation running. Use this when you want Sentry installed correctly the first time rather than debugging why your Flask errors aren't showing up because you initialized after creating the app object.
- skills.sh installs
- 2.6K
- GitHub stars
- 277
- last updated
- Aug 21, 2026
Install
$ npx -y skills add getsentry/sentry-for-ai --skill sentry-python-sdk --agent claude-codeInstalls into .claude/skills of the current project.
Files
All Skills > SDK Setup > Python SDK
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|pyramid" \
requirements.txt pyproject.toml 2>/dev/null
Sponsors
Details
- Repository
- github.com/getsentry/sentry-for-ai
- Categories
- DevOps & CI/CD, Debugging, Python
- First seen
- May 16, 2026
More from getsentry/sentry-for-ai
All 31- Sentry Nestjs Sdk2.6K
- Sentry Code Review2.5K
- Sentry Sdk Skill Creator2.5K
- Sentry Otel Exporter Setup2.5K
- Sentry Android Sdk2.4K
- Sentry Dotnet Sdk2.3K
- Sentry Php Sdk2.3K
- Sentry Flutter Sdk2.3K
- Sentry Pr Code Review2.3K
- Sentry Go Sdk2.3K
- Sentry Svelte Sdk2.2K
- Sentry Ruby Sdk2.2K
- Sentry Elixir Sdk2.1K
- Sentry Tanstack Start Sdk2K
- Sentry React Router Framework Sdk1.9K
- Sentry Instrumentation Guide1.2K
- Sentry Fix Issues10.4K
- Sentry Create Alert4.2K
- Sentry React Native Sdk4.2K
- Sentry Nextjs Sdk3.7K
- Sentry Sdk Setup3.7K
- Sentry Workflow3.6K
- Sentry Cocoa Sdk3.6K
- Sentry Node Sdk3.4K