Title: `ValueError:
Open Graph Title: `ValueError:
X Title: `ValueError:
Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.12.0 Steps to Reproduce Noticed the following error in the asyncio integration. It crashes the program. I have the following init: sentry_sdk.init( dsn=settings.sentry_dsn, environ...
Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.12.0 Steps to Reproduce Noticed the following error in the asyncio integration. It crashes the program. I have the following init: sentry_sd...
X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.12.0 Steps to Reproduce Noticed the following error in the asyncio integration. It crashes the program. I have the following init: sentry_sd...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/3724
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ValueError: \u003cToken var=\u003cContextVar name='current_scope' default=None at 0xXXX> at 0xYYY>` was created in a different Context","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n2.12.0\n\n### Steps to Reproduce\n\nNoticed the following error in the asyncio integration. It crashes the program. I have the following init:\n\n```python\n sentry_sdk.init(\n dsn=settings.sentry_dsn,\n environment=settings.env,\n integrations=[\n AsyncioIntegration(),\n LoguruIntegration(),\n FastApiIntegration(),\n OpenAIIntegration(),\n RedisIntegration(),\n HttpxIntegration(),\n AioHttpIntegration(),\n ],\n traces_sample_rate=1.0,\n profiles_sample_rate=1.0,\n )\n```\n\nCan it be somehow related to https://github.com/getsentry/sentry-python/issues/2908?\n\n### Expected Result\n\nNo crash.\n\n### Actual Result\n\n```\nTraceback (most recent call last):\n File \"/venv/lib/python3.11/site-packages/sentry_sdk/integrations/asyncio.py\", line 46, in _coro_creating_hub_and_span\n with sentry_sdk.isolation_scope():\n File \"/venv/lib/python3.11/site-packages/sentry_sdk/scope.py\", line 1628, in isolation_scope\n _current_scope.reset(current_token)\n File \"/usr/local/lib/python3.11/contextlib.py\", line 158, in __exit__\n self.gen.throw(typ, value, traceback)\nValueError: \u003cToken var=\u003cContextVar name='current_scope' default=None at 0x7cc13c5a72e0> at 0x7cc0dc4eb880> was created in a different Context\n```","author":{"url":"https://github.com/arkadiy-telegin","@type":"Person","name":"arkadiy-telegin"},"datePublished":"2024-11-01T03:35:09Z","url":"https://github.com/getsentry/sentry-python/issues/3724"}
| 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:8f6654a9-e4fc-615e-4f37-2643e1676e12 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF34:91CF4:29F7D4:38CD02:6B00C231 |
| html-safe-nonce | 44c044223c86e8df9a5cdfb1764ff1b616f8bb1630e0d5226b468a82209629e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjM0OjkxQ0Y0OjI5RjdENDozOENEMDI6NkIwMEMyMzEiLCJ2aXNpdG9yX2lkIjoiNDMzOTc3NzkxNTY2MDA1OTE4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a94a2a33c5daa033a1476f5e0330617a8f9a325ffe0de8bdefea7ae84a98b3c8 |
| hovercard-subject-tag | issue:2628235890 |
| 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/3724/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eeb116282d13a77ffa825c284f9d451fe8195557599ce8222ca3d901aadf1256/getsentry/sentry-python/issues/3724 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eeb116282d13a77ffa825c284f9d451fe8195557599ce8222ca3d901aadf1256/getsentry/sentry-python/issues/3724 |
| og:image:alt | How do you use Sentry? Sentry Saas (sentry.io) Version 2.12.0 Steps to Reproduce Noticed the following error in the asyncio integration. It crashes the program. I have the following init: sentry_sd... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arkadiy-telegin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415 |
| 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 | 1fee81a280ea86312b69448e261b418189bfd5b5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width