getsentry / getsentry/sentry-python

Document manual session tracking

Ouverte
#1,461 7 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
Docs good first issue Help Wanted Python
Langage dominant
Python
Étoiles
2.2k
Forks
669
Merge moyen
1 j 1 h
PR mergées (30 j)
213

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.