getsentry / getsentry/sentry-python
Document manual session tracking
未關閉
適合新手
Docs
good first issue
Help Wanted
Python
- 主要語言
- Python
- 星號
- 2.2k
- 分支
- 669
- 平均合併
- 1 天 40 分鐘
- 30 天內合併 PR
- 212
描述
### Problem Statement
If you have a non WSGI/ASGI project than there is no automatic session tracking.
But one can easily add session tracking by hand like this:
```
from sentry_sdk.hub import Hub
from sentry_sdk.sessions import auto_session_tracking
hub = Hub(Hub.current)
with auto_session_tracking(hub):
# all the code that belong to one session goes here.
```
### Solution Brainstorm
This should be somewhere in the documentation, so that people can add session tracking to their projects.
貢獻指南
研究方向
首先找到現有的工作階段追蹤文件,並根據文件化的 API 檢查 issue 中的 Python 範例。加入使用 Hub 和 auto_session_tracking 手動包裝非 WSGI/ASGI 工作階段的指南;當使用者能夠找到並依照適用於其專案類型的範例操作時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 活躍
- 描述清晰度
- 基本清楚
- 新手友好度
- 72/100