getsentry / getsentry/sentry-python
Document manual session tracking
Đang mở
Docs
good first issue
Help Wanted
Python
- Ngôn ngữ chính
- Python
- Star
- 2.2k
- Fork
- 669
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 213
Mô tả
### 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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.