GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

sentry-python

The official Python SDK for Sentry.io

  • 语言Python
  • 默认分支master
  • 大小118.7 MB
  • 更新18 小时前
  • Issues354
在 GitHub 打开
avatargetsentry

项目介绍

getsentry/sentry-python 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 2.2k 个 Star、684 次 Fork。

仓库全名
getsentry/sentry-python

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 . Official Sentry SDK for Python Welcome to the official Python SDK for Sentry. 📦 Getting Started Prerequisites You need a Sentry account and project. Installation Getting Sentry into your project is…

完整内容见 GitHub 原始 README 或本页 。

常见问题

sentry-python 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 2.2k 个 Star。

sentry-python 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 sentry-python 的源码?

可以直接克隆仓库:git clone https://github.com/getsentry/sentry-python.git,默认分支为 master;安装与运行步骤见仓库 README。

sentry-python 最近还在维护吗?

仓库最近一次更新为 18 小时前,当前有 354 个未关闭 Issue;Star 数为 2.2k,可作为社区活跃度的参考。

本页面展示项目元数据与原始 README,GitRead 中文社区 编辑团队负责选题收录。

相关仓库

public-apis/public-apis avatar
public-apispublic-apis
2 天前
497.8k
54.2k
66

免费 API 汇总列表

apipublic-apisfree+7
Python
15.5 MB
7
详情
EbookFoundation/free-programming-books avatar
free-programming-booksEbookFoundation
2 天前
401.4k
64.5k
39

免费可获取的编程书籍

bookseducationhacktoberfest+2
Python
21.8 MB
3
详情
donnemartin/system-design-primer avatar
system-design-primerdonnemartin
9月15日
377.5k
57.4k
291

学习如何设计大规模系统。为系统设计面试做准备。包含 Anki 闪卡。

designdesign-patternsdesign-system+10
Python
11.0 MB
0
详情
vinta/awesome-python avatar
awesome-pythonvinta
1 天前
333.7k
29.1k
20

回答“我想用 Python 做 X,该用哪个工具?”的权威清单

awesomeawesome-listpython+3
Python
6.9 MB
2
详情
practical-tutorials/project-based-learning avatar
project-based-learningpractical-tutorials
1 天前
289.5k
36.8k
237

精选的项目实战教程列表

tutorialprojectbeginner-project+5
Python
472 KB
1
详情
NousResearch/hermes-agent avatar
hermes-agentNousResearch
19 分钟前
262.2k
58.1k
19.0k

与你共同成长的智能体

aiai-agentai-agents+10
Python
1.4 GB
3
详情
TheAlgorithms/Python avatar
PythonTheAlgorithms
1 周前
226.0k
50.3k
11

所有算法均用 Python 实现

algorithmalgorithm-competitionsalgorithms-implemented+11
Python
17.9 MB
2
详情
yt-dlp/yt-dlp avatar
yt-dlpyt-dlp
6 天前
206.6k
17.9k
2.1k

功能丰富的命令行音视频下载器

youtube-dlpythonsponsorblock+4
Python
63.5 MB
0
详情

关于

crash-reportinghacktoberfestpythonsdksentrysentry-pythontag-productionteam-web-backend
  • MIT License
  • 2.2k Stars
  • 684 Forks
  • 70 Watching

简要分析

热度分
3658
价值分
1526
活跃状态
活跃
GitHub

语言占比

HTML
Jinja
Python
Shell

Release

  • 2.74.04 天前
  • 3.0.0b35 天前
  • 3.0.0b22 周前
  • 2.73.02 周前
  • 3.0.0b12 周前

贡献者

untitakeruntitakersentrivanasentrivanaalexander-alderman-webbalexander-alderman-webbantonpirkerantonpirkerericapisaniericapisaniszokeasaurusrexszokeasaurusrexdependabot[bot]dependabot[bot]getsentry-botgetsentry-botsl0thentr0pysl0thentr0pymitsuhikomitsuhikoZylphrexZylphrexgithub-actions[bot]github-actions[bot]
Sentry for Python

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.

Discord X Follow PyPi page link -- version python Build Status


Official Sentry SDK for Python

Welcome to the official Python SDK for Sentry.

📦 Getting Started

Prerequisites

You need a Sentry account and project.

Installation

Getting Sentry into your project is straightforward. Just run this command in your terminal:

pip install --upgrade sentry-sdk

Basic Configuration

Here’s a quick configuration example to get Sentry up and running:

import sentry_sdk

sentry_sdk.init(
    "https://[email protected]/1",  # Your DSN here

    # Set traces_sample_rate to 1.0 to capture 100%
    # of traces for performance monitoring.
    traces_sample_rate=1.0,

    # To disable sending user data and HTTP request/response bodies, uncomment
    # the line below. For more info visit:
    # https://docs.sentry.io/platforms/python/configuration/options/#data_collection
    # data_collection={"user_info": False, "http_bodies": []},
)

With this configuration, Sentry will monitor for exceptions and performance issues.

Quick Usage Example

To generate some events that will show up in Sentry, you can log messages or capture errors:

import sentry_sdk
sentry_sdk.init(...)  # same as above

sentry_sdk.capture_message("Hello Sentry!")  # You'll see this in your Sentry dashboard.

raise ValueError("Oops, something went wrong!")  # This will create an error event in Sentry.

📚 Documentation

For more details on advanced usage, integrations, and customization, check out the full documentation on https://docs.sentry.io.

🧩 Integrations

Sentry integrates with a ton of popular Python libraries and frameworks, including FastAPI, Django, Celery, OpenAI and many, many more. Check out the full list of integrations to get the full picture.

🚧 Migrating Between Versions?

From 1.x to 2.x

If you’re using the older 1.x version of the SDK, now’s the time to upgrade to 2.x. It includes significant upgrades and new features. Check our migration guide for assistance.

From raven-python

Using the legacy raven-python client? It’s now in maintenance mode, and we recommend migrating to the new SDK for an improved experience. Get all the details in our migration guide.

🙌 Want to Contribute?

We’d love your help in improving the Sentry SDK! Whether it’s fixing bugs, adding features, writing new integrations, or enhancing documentation, every contribution is valuable.

For details on how to contribute, please read our contribution guide and explore the open issues.

🛟 Need Help?

If you encounter issues or need help setting up or configuring the SDK, don’t hesitate to reach out to the Sentry Community on Discord. There is a ton of great people there ready to help!

🔗 Resources

Here are all resources to help you make the most of Sentry:

  • Documentation - Official documentation to get started.
  • Discord - Join our Discord community.
  • X/Twitter - Follow us on X (Twitter) for updates.
  • Stack Overflow - Questions and answers related to Sentry.

📃 License

The SDK is open-source and available under the MIT license. Check out the LICENSE file for more information.

😘 Contributors

Thanks to everyone who has helped improve the SDK!

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
5.7万中文话题
155精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。