Title: Auto enable Sessions for non-WSGI frameworks · Issue #1162 · getsentry/sentry-python · GitHub
Open Graph Title: Auto enable Sessions for non-WSGI frameworks · Issue #1162 · getsentry/sentry-python
X Title: Auto enable Sessions for non-WSGI frameworks · Issue #1162 · getsentry/sentry-python
Description: In #994 the SDK was changed such that the WSGI integration and all frameworks that inherit from it have "request-mode" sessions on by default. However, despite the default auto_session_tracking=True init option, session tracking is not e...
Open Graph Description: In #994 the SDK was changed such that the WSGI integration and all frameworks that inherit from it have "request-mode" sessions on by default. However, despite the default auto_session_tracking=Tru...
X Description: In #994 the SDK was changed such that the WSGI integration and all frameworks that inherit from it have "request-mode" sessions on by default. However, despite the default auto_session_tr...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/1162
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Auto enable Sessions for non-WSGI frameworks","articleBody":"In #994 the SDK was changed such that the WSGI integration and all frameworks that inherit from it have \"request-mode\" sessions on by default.\r\n\r\nHowever, despite the default `auto_session_tracking=True` init option, session tracking is not enabled for anything outside of the WSGI realm.\r\n\r\nMissing:\r\n\r\n- [ ] Automatic \"application-mode\" session for non-Web-servers applications\r\n- [ ] Automatic session for non-WSGI integrations (e.g., Django and ASGI)\r\n\r\nThese are also missing but probably should actually disable sessions altogether (and have accompanying documentation):\r\n\r\n- Queue consumers (e.g., Celery and RQ) ⇒ it is unclear doing 1 session per queue item is justified, there is no industry precedence on this to set user expectations\r\n- Serverless (e.g., AWS Lambda and Google Cloud Functions) ⇒ considering that the current implementation requires a separate request to send a session update, this would require a minimum of 2 requests per cloud function invocation (1 for transaction and 1 for session) which would be highly inefficient.\r\n\r\n- [ ] We need to document what `auto_session_tracking` enables, clarifying what the behavior is.","author":{"url":"https://github.com/rhcarvalho","@type":"Person","name":"rhcarvalho"},"datePublished":"2021-08-13T14:18:06Z","url":"https://github.com/getsentry/sentry-python/issues/1162"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83a6f07d-0e19-c120-d4fd-193de3e6019e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87D8:18DBD0:2CC413:3DEC53:6B0088E1 |
| html-safe-nonce | dd2693b890d31eeb2a879d4789bef7709cd61f63b792e21934e5c9e32ac42691 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0Q4OjE4REJEMDoyQ0M0MTM6M0RFQzUzOjZCMDA4OEUxIiwidmlzaXRvcl9pZCI6IjYzNTMwODM1OTg0NjcyNzA4ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4ccd9eeacfa4abbea86b53be44d0d66989599dd1d6fae4b48db78b88da917def |
| hovercard-subject-tag | issue:970442846 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/1162/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06cc0672a118f722b47338a9b15a295497f37a648dbc2d805554684a69af358a/getsentry/sentry-python/issues/1162 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06cc0672a118f722b47338a9b15a295497f37a648dbc2d805554684a69af358a/getsentry/sentry-python/issues/1162 |
| og:image:alt | In #994 the SDK was changed such that the WSGI integration and all frameworks that inherit from it have "request-mode" sessions on by default. However, despite the default auto_session_tracking=Tru... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rhcarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | db758f8e02b8257935fb03edf81a3e76eb3abd11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width