René's URL Explorer Experiment


Title: Remove `scope.span =` setter and make sure `scope.span` reference is correct in context manager regardless of source of span by sl0thentr0py · Pull Request #4439 · getsentry/sentry-python · GitHub

Open Graph Title: Remove `scope.span =` setter and make sure `scope.span` reference is correct in context manager regardless of source of span by sl0thentr0py · Pull Request #4439 · getsentry/sentry-python

X Title: Remove `scope.span =` setter and make sure `scope.span` reference is correct in context manager regardless of source of span by sl0thentr0py · Pull Request #4439 · 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: closes #3509

X Description: closes #3509

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

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:12b1ec47-db4a-ab4f-2dc2-9afd0c210d61
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA33C:2AB2D4:3571D2:49A471:6B00B4EA
html-safe-nonce443290ab2be7ea03bf6c974fac4a28c73feeb3fd5eeac113e421f5cb8e23d052
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzNDOjJBQjJENDozNTcxRDI6NDlBNDcxOjZCMDBCNEVBIiwidmlzaXRvcl9pZCI6IjgyNTYyNDgxOTUwNDMwNzk0MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb88f3ce3e75687adc0f4e1f28c5a8009d0a96c225b6fab2946aa3f1eed583373
hovercard-subject-tagpull_request:2563996941
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/4439/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cf963d2c1e6c5d399894bad8f0f21a6ee03695242033ea502f2006c07a35a33f/getsentry/sentry-python/pull/4439
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf963d2c1e6c5d399894bad8f0f21a6ee03695242033ea502f2006c07a35a33f/getsentry/sentry-python/pull/4439
og:image:altcloses #3509
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesl0thentr0py
hostnamegithub.com
expected-hostnamegithub.com
None1d07c25977adfc5ff6acb0a962a9bc168c07afbda6fef765f9761c350c2ae4a2
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
release5429cbfc6aca8c7b9a086a3c8f47400346f38cc9
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/4439#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4439
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%2F4439
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/4439
Reloadhttps://github.com/getsentry/sentry-python/pull/4439
Reloadhttps://github.com/getsentry/sentry-python/pull/4439
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 requests42 (42)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
sl0thentr0pyhttps://github.com/sl0thentr0py
potel-basehttps://github.com/getsentry/sentry-python/tree/potel-base
neel/remove-scope-span-setterhttps://github.com/getsentry/sentry-python/tree/neel/remove-scope-span-setter
Conversationhttps://github.com/getsentry/sentry-python/pull/4439
Commits2 (2)https://github.com/getsentry/sentry-python/pull/4439/commits
Checkshttps://github.com/getsentry/sentry-python/pull/4439/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/4439/files
Remove scope.span = setter and make sure scope.span reference is correct in context manager regardless of source of spanhttps://github.com/getsentry/sentry-python/pull/4439#top
sl0thentr0pyhttps://github.com/sl0thentr0py
potel-basehttps://github.com/getsentry/sentry-python/tree/potel-base
neel/remove-scope-span-setterhttps://github.com/getsentry/sentry-python/tree/neel/remove-scope-span-setter
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 3, 2025https://github.com/getsentry/sentry-python/pull/4439#issue-3114003644
#3509https://github.com/getsentry/sentry-python/issues/3509
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4439
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
code ownerhttps://github.com/getsentry/sentry-python/blob/a012fe4ec2ec52f29f80ddc0195c44c694abb441/.github/CODEOWNERS#L1
June 3, 2025 13:33https://github.com/getsentry/sentry-python/pull/4439#event-17958426152
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 3, 2025 https://github.com/getsentry/sentry-python/pull/4439#pullrequestreview-2892411943
View reviewed changes https://github.com/getsentry/sentry-python/pull/4439/files
sentry_sdk/tracing.pyhttps://github.com/getsentry/sentry-python/pull/4439/files#diff-771cb012ea65fcb826b77e2abb36b504fdf3407fbe8054857b05fe5a41ed5164
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 3, 2025https://github.com/getsentry/sentry-python/pull/4439#discussion_r2123841961
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4439
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 3, 2025 https://github.com/getsentry/sentry-python/pull/4439#pullrequestreview-2892413527
View reviewed changes https://github.com/getsentry/sentry-python/pull/4439/files
tests/integrations/rust_tracing/test_rust_tracing.pyhttps://github.com/getsentry/sentry-python/pull/4439/files#diff-29517a950806c8ce296af02cba35598e3e9bd27707f22c5f79f628f566ae5e6b
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 3, 2025https://github.com/getsentry/sentry-python/pull/4439#discussion_r2123843082
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4439
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
force-pushedhttps://github.com/getsentry/sentry-python/compare/f01cb0f197f26a7a2ec2ad9c4c33d2b0204d0699..605a673f01cba63d2eaba0238e8ea4f877ce58d5
f01cb0fhttps://github.com/getsentry/sentry-python/commit/f01cb0f197f26a7a2ec2ad9c4c33d2b0204d0699
605a673https://github.com/getsentry/sentry-python/commit/605a673f01cba63d2eaba0238e8ea4f877ce58d5
Compare https://github.com/getsentry/sentry-python/compare/f01cb0f197f26a7a2ec2ad9c4c33d2b0204d0699..605a673f01cba63d2eaba0238e8ea4f877ce58d5
June 3, 2025 13:36https://github.com/getsentry/sentry-python/pull/4439#event-17958519501
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Jun 3, 2025https://github.com/getsentry/sentry-python/pull/4439#issuecomment-2935311280
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4439
Codecovhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4439?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
(bc9af26)https://app.codecov.io/gh/getsentry/sentry-python/commit/bc9af268da2b32a7e619f32a9e81abbf0e605a3c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
(5dba74b)https://app.codecov.io/gh/getsentry/sentry-python/commit/5dba74b96f4a39b0c530e64e89a9684c3b6e0f1b?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/4439?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
sentry_sdk/integrations/celery/__init__.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4439?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fcelery%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvY2VsZXJ5L19faW5pdF9fLnB5
0 Missing and 1 partial ⚠️ https://app.codecov.io/gh/getsentry/sentry-python/pull/4439?src=pr&el=tree&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/4439?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
sentry_sdk/opentelemetry/contextvars_context.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4439?src=pr&el=tree&filepath=sentry_sdk%2Fopentelemetry%2Fcontextvars_context.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9vcGVudGVsZW1ldHJ5L2NvbnRleHR2YXJzX2NvbnRleHQucHk=
sentry_sdk/scope.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4439?src=pr&el=tree&filepath=sentry_sdk%2Fscope.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9zY29wZS5weQ==
sentry_sdk/tracing.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4439?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
sentry_sdk/tracing_utils.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4439?src=pr&el=tree&filepath=sentry_sdk%2Ftracing_utils.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay90cmFjaW5nX3V0aWxzLnB5
sentry_sdk/integrations/celery/__init__.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4439?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fcelery%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvY2VsZXJ5L19faW5pdF9fLnB5
2 files with indirect coverage changeshttps://app.codecov.io/gh/getsentry/sentry-python/pull/4439/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/4439
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Jun 3, 2025 https://github.com/getsentry/sentry-python/pull/4439#pullrequestreview-2892780375
View reviewed changes https://github.com/getsentry/sentry-python/pull/4439/files
sentrivanahttps://github.com/sentrivana
https://github.com/getsentry/sentry-python/pull/4439#pullrequestreview-2892780375
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4439
https://github.com/sl0thentr0py
Update trace decorator to not use start_childhttps://github.com/getsentry/sentry-python/pull/4439/commits/1b839c5a0c256f2295a9f7b74d50fcbc341c5969
1b839c5https://github.com/getsentry/sentry-python/pull/4439/commits/1b839c5a0c256f2295a9f7b74d50fcbc341c5969
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
force-pushedhttps://github.com/getsentry/sentry-python/compare/605a673f01cba63d2eaba0238e8ea4f877ce58d5..32ec148f3192ff776c8de7b01d82ced553d30e13
605a673https://github.com/getsentry/sentry-python/commit/605a673f01cba63d2eaba0238e8ea4f877ce58d5
32ec148https://github.com/getsentry/sentry-python/commit/32ec148f3192ff776c8de7b01d82ced553d30e13
Compare https://github.com/getsentry/sentry-python/compare/605a673f01cba63d2eaba0238e8ea4f877ce58d5..32ec148f3192ff776c8de7b01d82ced553d30e13
June 4, 2025 12:05https://github.com/getsentry/sentry-python/pull/4439#event-17980415105
https://github.com/sl0thentr0py
Remove scope.span = setter and make sure scope.span reference ishttps://github.com/getsentry/sentry-python/pull/4439/commits/5dba74b96f4a39b0c530e64e89a9684c3b6e0f1b
5dba74bhttps://github.com/getsentry/sentry-python/pull/4439/commits/5dba74b96f4a39b0c530e64e89a9684c3b6e0f1b
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
force-pushedhttps://github.com/getsentry/sentry-python/compare/32ec148f3192ff776c8de7b01d82ced553d30e13..5dba74b96f4a39b0c530e64e89a9684c3b6e0f1b
32ec148https://github.com/getsentry/sentry-python/commit/32ec148f3192ff776c8de7b01d82ced553d30e13
5dba74bhttps://github.com/getsentry/sentry-python/commit/5dba74b96f4a39b0c530e64e89a9684c3b6e0f1b
Compare https://github.com/getsentry/sentry-python/compare/32ec148f3192ff776c8de7b01d82ced553d30e13..5dba74b96f4a39b0c530e64e89a9684c3b6e0f1b
June 4, 2025 12:05https://github.com/getsentry/sentry-python/pull/4439#event-17980419629
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
June 4, 2025 12:05https://github.com/getsentry/sentry-python/pull/4439#event-17980421790
June 4, 2025 12:25https://github.com/getsentry/sentry-python/pull/4439#event-17980739352
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
cfbb8dbhttps://github.com/getsentry/sentry-python/commit/cfbb8db0d2a9f221bb4a1fcaad8964ccc327e19b
Jun 4, 2025https://github.com/getsentry/sentry-python/pull/4439#event-17980745590
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
June 4, 2025 12:25https://github.com/getsentry/sentry-python/pull/4439#event-17980746180
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 4, 2025 https://github.com/getsentry/sentry-python/pull/4439#ref-pullrequest-2344614538
POtel implementation base branch (aka SDK 3.0.0) #3152 https://github.com/getsentry/sentry-python/pull/3152
https://github.com/BYK
BYKhttps://github.com/BYK
Sep 3, 2025 https://github.com/getsentry/sentry-python/pull/4439#ref-pullrequest-3379689704
breaking: Remove Spotlight Django integration #4747 https://github.com/getsentry/sentry-python/pull/4747
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Oct 15, 2025 https://github.com/getsentry/sentry-python/pull/4439#ref-issue-3514134390
create a prioritised list of improvements to be backported from potel-base #4922 https://github.com/getsentry/sentry-python/issues/4922
https://github.com/dingsdax
dingsdaxhttps://github.com/dingsdax
Oct 15, 2025 https://github.com/getsentry/sentry-python/pull/4439#ref-issue-3518495470
Prepare issues for next major #4933 https://github.com/getsentry/sentry-python/issues/4933
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Oct 24, 2025 https://github.com/getsentry/sentry-python/pull/4439#ref-issue-3548321604
Remove scope.span setter #5026 https://github.com/getsentry/sentry-python/issues/5026
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%2F4439
https://github.com/sentrivana
sentrivana https://github.com/sentrivana
https://github.com/getsentry/sentry-python/pull/4439/files/32ec148f3192ff776c8de7b01d82ced553d30e13
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4439
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4439
https://github.com/sl0thentr0py
https://github.com/sentrivana
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.