getsentry / getsentry/sentry-python

Document manual session tracking

Aperta
#1,461 7 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Docs good first issue Help Wanted Python
Lingua principale
Python
Stelle
2.2k
Fork
669
Merge medio
1g 1h
PR unite (30g)
213

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.