Document manual session tracking
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.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Thanks for posting this. I was looking through the docs on how to do this. I would certainly be a helpful addition!