sentry-sdk
Python client for Sentry (https://sentry.io)
Decision gist · record as of 2026-08-14
Yes. Sentry SDK is actively maintained, has minimal install friction, carries no security vulnerabilities, and is widely used (top 250 PyPI package). The MIT license poses no restrictions. Install it if you need centralized error and performance monitoring; skip it only if you have no monitoring requirements or use an alternative error-tracking system.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Sentry account and project DSN (Data Source Name) from https://sentry.io to send events; without it, the SDK initializes but reports nowhere.
- Low friction install with only two lightweight runtime dependencies (urllib3, certifi).
- Actively maintained with a release just 1 day ago and 2202 repository stars, indicating solid community backing and ongoing support.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal obligations.
last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 2,202 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 168,154,875 downloads/mo, #250 on PyPI
Alternatives
Verify before relying
pip install sentry-sdk
import sentry_sdk
sentry_sdk.init("https://your-dsn@o.ingest.sentry.io/project-id", traces_sample_rate=1.0)
sentry_sdk.capture_message("Hello Sentry!")- Whether integrations with FastAPI, Django, Celery, OpenAI and others are included in the base package or require separate installation.
- Performance overhead of 100% traces_sample_rate in production workloads.
- Whether the SDK automatically captures all unhandled exceptions or requires explicit wrapping.
What it is and what it does
Sentry SDK is the official Python client for Sentry, a centralized error and performance monitoring platform. It captures unhandled exceptions, logged errors, and performance traces from your Python application and sends them to your Sentry project dashboard for analysis, alerting, and debugging. The SDK initializes with a DSN (Data Source Name) and optional configuration like traces_sample_rate to control what gets reported.
Once initialized, the SDK runs in the background of your application, intercepting errors and performance data without requiring explicit error-handling code for basic use. It supports a wide range of Python frameworks and libraries through optional integrations (FastAPI, Django, Celery, OpenAI, and others), making it adaptable to different application architectures. The package depends only on urllib3 and certifi for HTTP communication, keeping the installation footprint minimal.
Use it for
- Monitor production application errors in real-time and receive alerts when new exceptions occur.
- Track application performance issues and slow endpoints using distributed tracing with configurable sample rates.
- Debug issues faster by capturing full context (user info, HTTP request/response data, stack traces) alongside each error.
- Integrate error monitoring into Django, FastAPI, or Celery applications with minimal code changes.
- Aggregate errors across multiple environments or services into a single Sentry dashboard for centralized visibility.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Sentry SDK is actively maintained, has minimal install friction, carries no security vulnerabilities, and is widely used (top 250 PyPI package). The MIT license poses no restrictions. Install it if you need centralized error and performance monitoring; skip it only if you have no monitoring requirements or use an alternative error-tracking system.
Install
sentry-sdk on PyPI
Before you install
Low friction install with only two lightweight runtime dependencies (urllib3, certifi). Actively maintained with a release just 1 day ago and 2202 repository stars, indicating solid community backing and ongoing support.
Requires a Sentry account and project DSN (Data Source Name) from https://sentry.io to send events; without it, the SDK initializes but reports nowhere.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal obligations.
Quickstart
pip install sentry-sdk
import sentry_sdk
sentry_sdk.init("https://your-dsn@o.ingest.sentry.io/project-id", traces_sample_rate=1.0)
sentry_sdk.capture_message("Hello Sentry!")
Verify before relying
- Whether integrations with FastAPI, Django, Celery, OpenAI and others are included in the base package or require separate installation.
- Performance overhead of 100% traces_sample_rate in production workloads.
- Whether the SDK automatically captures all unhandled exceptions or requires explicit wrapping.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesurllib3certifi |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 168,154,875 / month, #250 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: sentry_sdk-2.68.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “crash reporting sdk”
- sentry-sdkSentry SDK captures and reports Python application errors,…
- mozcrashExtracts and formats stack traces from minidump files generated by…
- honeybadgerHoneybadger captures uncaught exceptions in Python applications and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also bugsnag · raven · sentry-cli · pytest-sentry · structlog-sentry · rollbar · safe-init · sentry-kafka-schemas · aa-taskmonitor