getsentry avatar

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-code

Installs 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
1getsentry avatarsentry-nestjs-sdkgetsentry/sentry-for-aiFull Sentry SDK setup for NestJS. Use when asked to "add Sentry to NestJS", "install @sentry/nestjs", "setup Sentry in NestJS", or configure error monitoring, t2.6Kskills.sh installs
2nvidia avatardata-designernvidia/skillsUse when the user wants to create a dataset, generate synthetic data, or build a data generation pipeline.2.6Kskills.sh installs
3nvidia avatardynamo-recipe-runnernvidia/skillsSelect, validate, patch, and deploy existing NVIDIA Dynamo Kubernetes recipes. Use for model/backend/GPU/deployment-mode recipe bring-up; use router-starter for2.5Kskills.sh installs
4pydantic avatarlogfire-instrumentationpydantic/skillsAdd Pydantic Logfire observability to applications and send as much useful telemetry as possible. Use this skill whenever the user asks to "add logfire", "instr2.4Kskills.sh installs
5forcedotcom avatardeploying-omnistudio-datapacksforcedotcom/sf-skillsSalesforce Industries DataPack deployment automation using Vlocity Build. TRIGGER when: user deploys or validates OmniStudio/Vlocity DataPacks with vlocity comm2.4Kskills.sh installs
6getsentry avatarsentry-android-sdkgetsentry/sentry-for-aiFull Sentry SDK setup for Android. Use when asked to "add Sentry to Android", "install sentry-android", "setup Sentry in Android", or configure error monitoring2.4Kskills.sh installs