New advertisers: 50% off your first month with code FIRSTMONTHSee slots
getsentry avatar

Sentry Python Sdk

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

skills.sh installs
2.7K
GitHub stars
280
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers error monitoring, tracing, profiling, logging, metrics, crons, and AI monitoring for Python applications
  • Includes a phased workflow: detect the project's frameworks and queues, recommend features, then guide installation and init
  • Routes to an OTLP path when OpenTelemetry tracing is detected, and skips native tracing and profiling in that case
  • Designed for Django, Flask, FastAPI, Celery, Starlette, AIOHTTP, Tornado, and other Python web frameworks

Install

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

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

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

Details

Repository
github.com/getsentry/sentry-for-ai
Categories
DevOps & Cloud, Python, Debugging
First seen
May 16, 2026

More from getsentry/sentry-for-ai

All 27

Similar to Sentry Python Sdk

More DevOps & Cloud