Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/getsentry/sentry-python
The official Python SDK for Sentry.io
https://github.com/getsentry/sentry-python
crash-reporting hacktoberfest python sentry sentry-python tag-production
Last synced: about 1 month ago
JSON representation
The official Python SDK for Sentry.io
- Host: GitHub
- URL: https://github.com/getsentry/sentry-python
- Owner: getsentry
- License: mit
- Created: 2018-06-18T22:51:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T11:15:38.000Z (about 2 months ago)
- Last Synced: 2024-04-12T16:23:36.740Z (about 2 months ago)
- Topics: crash-reporting, hacktoberfest, python, sentry, sentry-python, tag-production
- Language: Python
- Homepage: https://sentry.io/for/python/
- Size: 39.5 MB
- Stars: 1,734
- Watchers: 72
- Forks: 454
- Open Issues: 189
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING-aws-lambda.md
- License: LICENSE
Lists
- awesome-python - sentry-python - Sentry SDK for Python. (Logging)
- awesome-django - sentry-python - Error reporting SDK. (Python Packages / Views)
- awesome-python-cn - sentry-python
- awesome-flask - sentry-sdk - Python client for [Sentry](https://sentry.io/welcome/). (Exception tracking)
- awesome-django - sentry-python - Error reporting SDK. (Python Packages / Views)
- awesome-stars - getsentry/sentry-python - The official Python SDK for Sentry.io (Python)
- python-awesome-case1 - sentry-python - Sentry SDK for Python. (Logging)
- awesome-python - sentry-python - Sentry SDK for Python. (Logging)
- fucking-awesome-python - :octocat: sentry-python - :star: 1566 :fork_and_knife: 394 - Sentry SDK for Python. (Logging)
- awesome-stars - getsentry/sentry-python - The official Python SDK for Sentry.io (Python)
- awesome-python-master - sentry-python - Sentry SDK for Python. (Logging)
- awesome-stars - sentry-python
- awesome-stars - getsentry/sentry-python - The official Python SDK for Sentry.io (Python)
- my-awesome-stars - getsentry/sentry-python - The official Python SDK for Sentry.io (Python)
- awesome-python-cn - sentry-python
- awesome-python - sentry-python - Sentry SDK for Python. (Logging)
- awesome-django - sentry-python - Error reporting SDK. (Python Packages / Views)
- awesome-django - sentry-python - Error reporting SDK. (Python Packages / Views)
- awesome-stars - sentry-python
- awesome-django - sentry-python - Error reporting SDK. (Python Packages / Views)
- awesome-python-clone - sentry-python - Sentry SDK for Python. (Logging)
- best-of-python-dev - GitHub - 15% open · ⏱️ 23.05.2024): (Logging)
- fucking-awesome-python - :octocat: sentry-python - :star: 795 :fork_and_knife: 163 - Sentry SDK for Python. (Logging)
- awesome-python - sentry-python - Sentry SDK for Python. (Logging)
- awesome-python-zh - sentry-python - Sentry SDK for Python。 (日志记录)
- awesome-python - sentry-python - Sentry SDK for Python. (Logging)
- awesome-python-resources - GitHub - 20% open · ⏱️ 19.08.2022): (日志)
- awesome-python - sentry-python - Sentry SDK for Python. (Logging)
- -awesome-django - sentry-python - Error reporting SDK. (Python Packages / Views)
- awesome-python-master - sentry-python - Sentry SDK for Python. (Logging)
- awesome-django - sentry-python - Error reporting SDK. (Python Packages / Views)
- awesome-python - sentry-python - Sentry SDK for Python. (Logging)
- python-awesome - sentry-python - Sentry SDK for Python. (Logging)
- awesome-python - sentry-python - Sentry SDK for Python. (Logging)
- awesome-flask - sentry-sdk - Python client for [Sentry](https://sentry.io/welcome/). (Exception tracking)
- awesome-python - sentry-python - Sentry SDK for Python. (Logging)
- my-stars - getsentry/sentry-python - The official Python SDK for Sentry.io (Python)
- awesome-django - sentry-python - Error reporting SDK. (Python Packages / Views)
- jimsghstars - getsentry/sentry-python - The official Python SDK for Sentry.io (Python)
- awesome-flask - sentry-sdk - Python client for [Sentry](https://sentry.io/welcome/). (Exception tracking)
README
_Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us [**Check out our open positions**](https://sentry.io/careers/)_
# Official Sentry SDK for Python
[![Build Status](https://github.com/getsentry/sentry-python/actions/workflows/ci.yml/badge.svg)](https://github.com/getsentry/sentry-python/actions/workflows/ci.yml)
[![PyPi page link -- version](https://img.shields.io/pypi/v/sentry-sdk.svg)](https://pypi.python.org/pypi/sentry-sdk)
[![Discord](https://img.shields.io/discord/621778831602221064)](https://discord.gg/cWnMQeA)This is the official Python SDK for [Sentry](http://sentry.io/)
---
## Getting Started
### Install
```bash
pip install --upgrade sentry-sdk
```### Configuration
```python
import sentry_sdksentry_sdk.init(
"https://[email protected]/1",# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
traces_sample_rate=1.0,
)
```### Usage
```python
from sentry_sdk import capture_message
capture_message("Hello World") # Will create an event in Sentry.raise ValueError() # Will also create an event in Sentry.
```- To learn more about how to use the SDK [refer to our docs](https://docs.sentry.io/platforms/python/).
- Are you coming from `raven-python`? [Use this migration guide](https://docs.sentry.io/platforms/python/migration/).
- To learn about internals use the [API Reference](https://getsentry.github.io/sentry-python/).## Integrations
(If you want to create a new integration, have a look at the [Adding a new integration checklist](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md#adding-a-new-integration).)
See [the documentation](https://docs.sentry.io/platforms/python/integrations/) for an up-to-date list of libraries and frameworks we support. Here are some examples:
- [Django](https://docs.sentry.io/platforms/python/integrations/django/)
- [Flask](https://docs.sentry.io/platforms/python/integrations/flask/)
- [FastAPI](https://docs.sentry.io/platforms/python/integrations/fastapi/)
- [AIOHTTP](https://docs.sentry.io/platforms/python/integrations/aiohttp/)
- [SQLAlchemy](https://docs.sentry.io/platforms/python/integrations/sqlalchemy/)
- [asyncpg](https://docs.sentry.io/platforms/python/integrations/asyncpg/)
- [Redis](https://docs.sentry.io/platforms/python/integrations/redis/)
- [Celery](https://docs.sentry.io/platforms/python/integrations/celery/)
- [Apache Airflow](https://docs.sentry.io/platforms/python/integrations/airflow/)
- [Apache Spark](https://docs.sentry.io/platforms/python/integrations/pyspark/)
- [asyncio](https://docs.sentry.io/platforms/python/integrations/asyncio/)
- [Graphene](https://docs.sentry.io/platforms/python/integrations/graphene/)
- [Logging](https://docs.sentry.io/platforms/python/integrations/logging/)
- [Loguru](https://docs.sentry.io/platforms/python/integrations/loguru/)
- [HTTPX](https://docs.sentry.io/platforms/python/integrations/httpx/)
- [AWS Lambda](https://docs.sentry.io/platforms/python/integrations/aws-lambda/)
- [Google Cloud Functions](https://docs.sentry.io/platforms/python/integrations/gcp-functions/)## Migrating From `raven-python`
The old `raven-python` client has entered maintenance mode and was moved [here](https://github.com/getsentry/raven-python).
If you're using `raven-python`, we recommend you to migrate to this new SDK. You can find the benefits of migrating and how to do it in our [migration guide](https://docs.sentry.io/platforms/python/migration/).
## Contributing to the SDK
Please refer to [CONTRIBUTING.md](CONTRIBUTING.md).
## Getting Help/Support
If you need help setting up or configuring the Python SDK (or anything else in the Sentry universe) please head over to the [Sentry Community on Discord](https://discord.com/invite/Ww9hbqr). There is a ton of great people in our Discord community ready to help you!
## Resources
- [![Documentation](https://img.shields.io/badge/documentation-sentry.io-green.svg)](https://docs.sentry.io/quickstart/)
- [![Forum](https://img.shields.io/badge/forum-sentry-green.svg)](https://forum.sentry.io/c/sdks)
- [![Discord](https://img.shields.io/discord/621778831602221064)](https://discord.gg/Ww9hbqr)
- [![Stack Overflow](https://img.shields.io/badge/stack%20overflow-sentry-green.svg)](http://stackoverflow.com/questions/tagged/sentry)
- [![Twitter Follow](https://img.shields.io/twitter/follow/getsentry?label=getsentry&style=social)](https://twitter.com/intent/follow?screen_name=getsentry)## License
Licensed under the MIT license, see [`LICENSE`](LICENSE)