René's URL Explorer Experiment


Title: Wrap span restoration in `__exit__` in `capture_internal_exceptions` by sentrivana · Pull Request #4719 · getsentry/sentry-python · GitHub

Open Graph Title: Wrap span restoration in `__exit__` in `capture_internal_exceptions` by sentrivana · Pull Request #4719 · getsentry/sentry-python

X Title: Wrap span restoration in `__exit__` in `capture_internal_exceptions` by sentrivana · Pull Request #4719 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: Ref #4718 Does not solve the underlying issue and might leave things in an inconsistent state, but it's still preferable to letting an error bubble up to the user.

X Description: Ref #4718 Does not solve the underlying issue and might leave things in an inconsistent state, but it's still preferable to letting an error bubble up to the user.

Opengraph URL: https://github.com/getsentry/sentry-python/pull/4719

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:912ad6c9-f021-565e-c746-f028b0bccaa8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC73A:19F25F:595A9D:772635:6B00922D
html-safe-nonce3fcc9beaa14f209ca6ea0558d1f6c24632ea1f5cbc5b689f4085a2425346771f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzNBOjE5RjI1Rjo1OTVBOUQ6NzcyNjM1OjZCMDA5MjJEIiwidmlzaXRvcl9pZCI6IjYxNTk1NDg4MDI5OTE2OTAyODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac57f20373c80f87216f779a7a3d1332fc2f09c4eb45db455b3e280641a6ec57f1
hovercard-subject-tagpull_request:2771255107
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-python/4719/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4898156c4daf1c9f19cb3ea8708cd9f309a0dc2c1a6920038ecf32364a9ed2dc/getsentry/sentry-python/pull/4719
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4898156c4daf1c9f19cb3ea8708cd9f309a0dc2c1a6920038ecf32364a9ed2dc/getsentry/sentry-python/pull/4719
og:image:altRef #4718 Does not solve the underlying issue and might leave things in an inconsistent state, but it's still preferable to letting an error bubble up to the user.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesentrivana
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/4719#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4719
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4719
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/4719
Reloadhttps://github.com/getsentry/sentry-python/pull/4719
Reloadhttps://github.com/getsentry/sentry-python/pull/4719
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests41 (41)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
sentrivanahttps://github.com/sentrivana
masterhttps://github.com/getsentry/sentry-python/tree/master
ivana/context_manager_state-missing-in-span-exithttps://github.com/getsentry/sentry-python/tree/ivana/context_manager_state-missing-in-span-exit
Conversationhttps://github.com/getsentry/sentry-python/pull/4719
Commits4 (4)https://github.com/getsentry/sentry-python/pull/4719/commits
Checkshttps://github.com/getsentry/sentry-python/pull/4719/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/4719/files
Wrap span restoration in __exit__ in capture_internal_exceptionshttps://github.com/getsentry/sentry-python/pull/4719#top
sentrivanahttps://github.com/sentrivana
masterhttps://github.com/getsentry/sentry-python/tree/master
ivana/context_manager_state-missing-in-span-exithttps://github.com/getsentry/sentry-python/tree/ivana/context_manager_state-missing-in-span-exit
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Aug 25, 2025https://github.com/getsentry/sentry-python/pull/4719#issue-3351201646
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4719
#4718https://github.com/getsentry/sentry-python/issues/4718
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4719
https://github.com/sentrivana
Wrap span restoration in __exit__ in capture_internal_exceptionshttps://github.com/getsentry/sentry-python/pull/4719/commits/1f7d1a119a185a65bdd1bc4dc69506af71b59e47
1f7d1a1https://github.com/getsentry/sentry-python/pull/4719/commits/1f7d1a119a185a65bdd1bc4dc69506af71b59e47
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Aug 25, 2025https://github.com/getsentry/sentry-python/pull/4719#issuecomment-3219617468
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4719
Codecovhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4719?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
f702ec9https://app.codecov.io/gh/getsentry/sentry-python/commit/f702ec94badc17bd09d7d3ccf7414fde01a173c8?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
44d568ehttps://app.codecov.io/gh/getsentry/sentry-python/commit/44d568edc09489e8bdae505376fa2fdec5fbda4c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
Files with missing lineshttps://app.codecov.io/gh/getsentry/sentry-python/pull/4719?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
sentry_sdk/tracing.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4719?src=pr&el=tree&filepath=sentry_sdk%2Ftracing.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay90cmFjaW5nLnB5
5 files with indirect coverage changeshttps://app.codecov.io/gh/getsentry/sentry-python/pull/4719/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4719
https://github.com/sentrivana
Merge branch 'master' into ivana/context_manager_state-missing-in-spa…https://github.com/getsentry/sentry-python/pull/4719/commits/41e8884617a2f73ad7e2fe1129f9045924c4a45c
41e8884https://github.com/getsentry/sentry-python/pull/4719/commits/41e8884617a2f73ad7e2fe1129f9045924c4a45c
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Aug 26, 2025https://github.com/getsentry/sentry-python/pull/4719#issuecomment-3223195631
#4720https://github.com/getsentry/sentry-python/pull/4720
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4719
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Aug 26, 2025https://github.com/getsentry/sentry-python/pull/4719#event-19338918151
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Sep 3, 2025https://github.com/getsentry/sentry-python/pull/4719#event-19475010758
sentrivanahttps://github.com/sentrivana
September 3, 2025 09:10https://github.com/getsentry/sentry-python/pull/4719#commits-pushed-43ea119
https://github.com/sentrivana
Merge branch 'master' into ivana/context_manager_state-missing-in-spa…https://github.com/getsentry/sentry-python/pull/4719/commits/43ea1197d0287beaa4dd007a51a4bc6770b44f1f
43ea119https://github.com/getsentry/sentry-python/pull/4719/commits/43ea1197d0287beaa4dd007a51a4bc6770b44f1f
https://github.com/sentrivana
Merge branch 'master' into ivana/context_manager_state-missing-in-spa…https://github.com/getsentry/sentry-python/pull/4719/commits/44d568edc09489e8bdae505376fa2fdec5fbda4c
44d568ehttps://github.com/getsentry/sentry-python/pull/4719/commits/44d568edc09489e8bdae505376fa2fdec5fbda4c
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
September 3, 2025 12:49https://github.com/getsentry/sentry-python/pull/4719#event-19481657716
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
code ownerhttps://github.com/getsentry/sentry-python/blob/f702ec94badc17bd09d7d3ccf7414fde01a173c8/.github/CODEOWNERS#L1
September 3, 2025 12:49https://github.com/getsentry/sentry-python/pull/4719#event-19481657839
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Sep 3, 2025 https://github.com/getsentry/sentry-python/pull/4719#pullrequestreview-3180522396
View reviewed changes https://github.com/getsentry/sentry-python/pull/4719/files/44d568edc09489e8bdae505376fa2fdec5fbda4c
sentry_sdk/tracing.pyhttps://github.com/getsentry/sentry-python/pull/4719/files/44d568edc09489e8bdae505376fa2fdec5fbda4c#diff-771cb012ea65fcb826b77e2abb36b504fdf3407fbe8054857b05fe5a41ed5164
cursorhttps://github.com/apps/cursor
Sep 3, 2025https://github.com/getsentry/sentry-python/pull/4719#discussion_r2318882104
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?data=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImJ1Z2JvdC12MSJ9.eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9DVVJTT1IiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OmViYjMwZjNhLWY5ZDEtNDQ4YS1hZTdiLTQ0ZjQwNWEwYjdhYSIsImVuY3J5cHRpb25LZXkiOiJIQ2FPUUxfcjd2b0MtcTJaWUJTVzRvZHNxUjhLSGlpVWtJajF6MWsxSDdzIiwiYnJhbmNoIjoiaXZhbmEvY29udGV4dF9tYW5hZ2VyX3N0YXRlLW1pc3NpbmctaW4tc3Bhbi1leGl0In0sImlhdCI6MTc1NjkwMzk0NSwiZXhwIjoxNzU3NTA4NzQ1fQ.GfiDK8cbAiEMRc-1quWANM07pBcOPauJJ3sClMM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De_4FYYLEOXIG_KU1zXafnNq9F15bkj46tP_XLjwtwk4GOIMaAZYvsuKJolm_FcULxagVuBeX9D23tg1Ej6NUH6_jOocPwrWxmTdB9FtRU0O0zOkQSEl1nRV0bUJTOWaNt4ID7yZMxe16TKYZQdUgooH9LolDpRNrGz52hdMLtaxlcr9w8owj1Mz7ZGnxQ
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4719
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Sep 3, 2025 https://github.com/getsentry/sentry-python/pull/4719#pullrequestreview-3180684715
View reviewed changes https://github.com/getsentry/sentry-python/pull/4719/files/44d568edc09489e8bdae505376fa2fdec5fbda4c
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
5f2adcfhttps://github.com/getsentry/sentry-python/commit/5f2adcffecff85b1f736f93701cf154d58f85653
Sep 3, 2025https://github.com/getsentry/sentry-python/pull/4719#event-19483416500
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
September 3, 2025 14:11https://github.com/getsentry/sentry-python/pull/4719#event-19483417531
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Sep 4, 2025 https://github.com/getsentry/sentry-python/pull/4719#ref-issue-3351108712
'Span' object has no attribute '_context_manager_state' #4718 https://github.com/getsentry/sentry-python/issues/4718
https://github.com/Afstkla
Afstklahttps://github.com/Afstkla
Nov 10, 2025 https://github.com/getsentry/sentry-python/pull/4719#ref-issue-3587498900
BUG: in OpenAIAgentsIntegration + AsyncioIntegration: '_context_manager_state' not found #5067 https://github.com/getsentry/sentry-python/issues/5067
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4719
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/4719/files/44d568edc09489e8bdae505376fa2fdec5fbda4c
https://github.com/alexander-alderman-webb
alexander-alderman-webb https://github.com/alexander-alderman-webb
https://github.com/getsentry/sentry-python/pull/4719/files/44d568edc09489e8bdae505376fa2fdec5fbda4c
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4719
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4719
https://github.com/sentrivana
https://github.com/alexander-alderman-webb
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.