sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

Document manual session tracking

Open antonpirker opened this issue 3 years ago • 2 comments

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.

antonpirker avatar Jun 08 '22 12:06 antonpirker

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 🥀

github-actions[bot] avatar Jul 06 '22 00:07 github-actions[bot]

Thanks for posting this. I was looking through the docs on how to do this. I would certainly be a helpful addition!

rlaunch avatar Dec 20 '22 10:12 rlaunch