getsentry / getsentry/sentry-python

Document manual session tracking

オープン
#1,461 コメント 7 件 リアクション 2 件 担当者 0 名 GitHub で見る
Docs good first issue Help Wanted Python
主要言語
Python
スター
2.2k
フォーク
669
平均マージ
1日 1時間
マージ済み PR(30日)
213

説明

### 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。