René's URL Explorer Experiment


Title: fix(asyncpg): Use distinct span ops for cursor iteration and fetch to prevent N+1 false positives by ericapisani · Pull Request #6609 · getsentry/sentry-python · GitHub

Open Graph Title: fix(asyncpg): Use distinct span ops for cursor iteration and fetch to prevent N+1 false positives by ericapisani · Pull Request #6609 · getsentry/sentry-python

X Title: fix(asyncpg): Use distinct span ops for cursor iteration and fetch to prevent N+1 false positives by ericapisani · Pull Request #6609 · 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: When asyncpg iterates a server-side cursor (via CursorIterator.anext) or fetches rows in batches (via Cursor.fetch), each batch triggers BaseCursor._bind_exec or BaseCursor._exec, producing a burst...

X Description: When asyncpg iterates a server-side cursor (via CursorIterator.anext) or fetches rows in batches (via Cursor.fetch), each batch triggers BaseCursor._bind_exec or BaseCursor._exec, producing a burst...

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

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:37c3258b-dbc2-a186-7058-2df4debb8890
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC752:296654:370AC4:4B4A7F:6B00C759
html-safe-nonce74589c5450499ed463d18b6dd6e155ce981e5d91edb7350f328dd409d01d6cb6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzUyOjI5NjY1NDozNzBBQzQ6NEI0QTdGOjZCMDBDNzU5IiwidmlzaXRvcl9pZCI6Ijc5MjA2NDAxNDIwMjMzNzg3NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccbd1eb4783f1af5b8fa7ff79a12a617b86558f66b391b00a19ae44d8511de040
hovercard-subject-tagpull_request:3899648960
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/6609/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9e4821ed4aa3a1ac66b0a434b4b3e586fb0a39601488f782ed07a04bd281ca51/getsentry/sentry-python/pull/6609
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9e4821ed4aa3a1ac66b0a434b4b3e586fb0a39601488f782ed07a04bd281ca51/getsentry/sentry-python/pull/6609
og:image:altWhen asyncpg iterates a server-side cursor (via CursorIterator.anext) or fetches rows in batches (via Cursor.fetch), each batch triggers BaseCursor._bind_exec or BaseCursor._exec, producing a burst...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericapisani
hostnamegithub.com
expected-hostnamegithub.com
None98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4
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
releaseef013399cf0a3c324bea644a685d7c1e0f06b5b7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/6609#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F6609
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%2F6609
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/6609
Reloadhttps://github.com/getsentry/sentry-python/pull/6609
Reloadhttps://github.com/getsentry/sentry-python/pull/6609
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
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
py-2534-identify-db-ops-related-to-cursor-iterationhttps://github.com/getsentry/sentry-python/tree/py-2534-identify-db-ops-related-to-cursor-iteration
Conversationhttps://github.com/getsentry/sentry-python/pull/6609
Commits5 (5)https://github.com/getsentry/sentry-python/pull/6609/commits
Checkshttps://github.com/getsentry/sentry-python/pull/6609/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/6609/files
fix(asyncpg): Use distinct span ops for cursor iteration and fetch to prevent N+1 false positiveshttps://github.com/getsentry/sentry-python/pull/6609#top
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
py-2534-identify-db-ops-related-to-cursor-iterationhttps://github.com/getsentry/sentry-python/tree/py-2534-identify-db-ops-related-to-cursor-iteration
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Jun 19, 2026https://github.com/getsentry/sentry-python/pull/6609#issue-4701968197
#6576https://github.com/getsentry/sentry-python/issues/6576
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
https://github.com/ericapisani
fix(asyncpg): Use distinct span ops for cursor iteration and fetch to…https://github.com/getsentry/sentry-python/pull/6609/commits/8674d1f9bac8d766c8e20574665f4870f3ae12f9
8674d1fhttps://github.com/getsentry/sentry-python/pull/6609/commits/8674d1f9bac8d766c8e20574665f4870f3ae12f9
#6576https://github.com/getsentry/sentry-python/issues/6576
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Jun 19, 2026https://github.com/getsentry/sentry-python/pull/6609#issuecomment-4753022113
PY-2534https://linear.app/getsentry/issue/PY-2534
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jun 19, 2026https://github.com/getsentry/sentry-python/pull/6609#issuecomment-4753113154
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
sentry_sdk/integrations/asyncpg.pyhttps://github.com/getsentry/sentry-python/pull/6609/files#diff-e84ac0dfd297dc7cbebce1eabb50a946897e5fdc93771715fe3af475260cb180
Codecov Actionhttps://github.com/getsentry/codecov-action
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
ericapisanihttps://github.com/ericapisani
June 19, 2026 13:22https://github.com/getsentry/sentry-python/pull/6609#commits-pushed-e06f55d
https://github.com/ericapisani
Merge branch 'master' into py-2534-identify-db-ops-related-to-cursor-…https://github.com/getsentry/sentry-python/pull/6609/commits/e06f55db1d45c11a65bbe90157b7c5c415387557
e06f55dhttps://github.com/getsentry/sentry-python/pull/6609/commits/e06f55db1d45c11a65bbe90157b7c5c415387557
https://github.com/ericapisani
see if this fixes the linterhttps://github.com/getsentry/sentry-python/pull/6609/commits/492b4db765eb3f1971e0f23431153b70425dd5a2
492b4dbhttps://github.com/getsentry/sentry-python/pull/6609/commits/492b4db765eb3f1971e0f23431153b70425dd5a2
ericapisanihttps://github.com/ericapisani
Jun 19, 2026 https://github.com/getsentry/sentry-python/pull/6609#ref-commit-394709a
https://github.com/ericapisani
Update tests given changes introduced inhttps://github.com/getsentry/sentry/commit/394709aaf9e1dd5e4201ac20a144819724870907
getsentry/sentry-python#6609https://github.com/getsentry/sentry-python/pull/6609
394709ahttps://github.com/getsentry/sentry/commit/394709aaf9e1dd5e4201ac20a144819724870907
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Jun 19, 2026 https://github.com/getsentry/sentry-python/pull/6609#ref-pullrequest-4694039391
fix(performance): exclude db.cursor spans from N+1 DB detection getsentry/sentry#118031 https://github.com/getsentry/sentry/pull/118031
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
June 19, 2026 17:45https://github.com/getsentry/sentry-python/pull/6609#event-26967589174
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
code ownerhttps://github.com/getsentry/sentry-python/blob/1164b1851093725d8095caba394a78234770460c/.github/CODEOWNERS#L1
June 19, 2026 17:45https://github.com/getsentry/sentry-python/pull/6609#event-26967589457
https://github.com/wahajahmed010
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F6609
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 22, 2026 https://github.com/getsentry/sentry-python/pull/6609#pullrequestreview-4543738569
View reviewed changes https://github.com/getsentry/sentry-python/pull/6609/files/492b4db765eb3f1971e0f23431153b70425dd5a2
sentry_sdk/integrations/asyncpg.pyhttps://github.com/getsentry/sentry-python/pull/6609/files/492b4db765eb3f1971e0f23431153b70425dd5a2#diff-e84ac0dfd297dc7cbebce1eabb50a946897e5fdc93771715fe3af475260cb180
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 22, 2026https://github.com/getsentry/sentry-python/pull/6609#discussion_r3451966293
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
ericapisanihttps://github.com/ericapisani
Jun 22, 2026https://github.com/getsentry/sentry-python/pull/6609#discussion_r3452152191
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 22, 2026https://github.com/getsentry/sentry-python/pull/6609#discussion_r3452177580
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
Jun 22, 2026https://github.com/getsentry/sentry-python/pull/6609#discussion_r3453139582
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
ericapisanihttps://github.com/ericapisani
Jun 22, 2026https://github.com/getsentry/sentry-python/pull/6609#discussion_r3453401610
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
ericapisanihttps://github.com/ericapisani
Jun 22, 2026https://github.com/getsentry/sentry-python/pull/6609#discussion_r3453421032
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
cd25110https://github.com/getsentry/sentry-python/commit/cd25110fc8ffc1500af30947a0c53f6b08011d33
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
https://github.com/ericapisani
CR commentshttps://github.com/getsentry/sentry-python/pull/6609/commits/cd25110fc8ffc1500af30947a0c53f6b08011d33
cd25110https://github.com/getsentry/sentry-python/pull/6609/commits/cd25110fc8ffc1500af30947a0c53f6b08011d33
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Jun 22, 2026 https://github.com/getsentry/sentry-python/pull/6609#pullrequestreview-4545612318
View reviewed changes https://github.com/getsentry/sentry-python/pull/6609/files/cd25110fc8ffc1500af30947a0c53f6b08011d33
https://github.com/ericapisani
liiiiiinthttps://github.com/getsentry/sentry-python/pull/6609/commits/970b62849e8a8aa50a7b97aa754a7ad7237f74b1
970b628https://github.com/getsentry/sentry-python/pull/6609/commits/970b62849e8a8aa50a7b97aa754a7ad7237f74b1
https://github.com/apps/sentry
sentryhttps://github.com/apps/sentry
Jun 22, 2026 https://github.com/getsentry/sentry-python/pull/6609#pullrequestreview-4545657241
View reviewed changes https://github.com/getsentry/sentry-python/pull/6609/files/970b62849e8a8aa50a7b97aa754a7ad7237f74b1
sentry_sdk/tracing_utils.pyhttps://github.com/getsentry/sentry-python/pull/6609/files/970b62849e8a8aa50a7b97aa754a7ad7237f74b1#diff-7c64294459f5053c93d44e0e33e4e73ffcef0adefcd77ba91f4031aa461a8c42
sentryhttps://github.com/apps/sentry
Jun 22, 2026https://github.com/getsentry/sentry-python/pull/6609#discussion_r3453493433
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
dafa2bdhttps://github.com/getsentry/sentry-python/commit/dafa2bd4b1a4848732d1d37ad0c2b4fda6f8eb7a
Jun 22, 2026https://github.com/getsentry/sentry-python/pull/6609#event-27050934946
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
June 22, 2026 15:53https://github.com/getsentry/sentry-python/pull/6609#event-27050936965
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
Jun 30, 2026 https://github.com/getsentry/sentry-python/pull/6609#ref-issue-4774764505
publish: getsentry/sentry-python@2.64.0 getsentry/publish#8744 https://github.com/getsentry/publish/issues/8744
mgalignianahttps://github.com/mgaligniana
Aug 9, 2026 https://github.com/getsentry/sentry-python/pull/6609#ref-commit-0a4e70d
https://github.com/ericapisani
https://github.com/mgaligniana
fix(asyncpg): Use distinct span ops for cursor iteration and fetch to…https://github.com/mgaligniana/sentry-python/commit/0a4e70da69c13e4d91697fc869000c7c05f73291
0a4e70dhttps://github.com/mgaligniana/sentry-python/commit/0a4e70da69c13e4d91697fc869000c7c05f73291
getsentry#6609https://github.com/getsentry/sentry-python/pull/6609
getsentry#6576https://github.com/getsentry/sentry-python/issues/6576
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%2F6609
https://github.com/apps/sentry
sentry[bot] https://github.com/apps/sentry
https://github.com/getsentry/sentry-python/pull/6609/files/970b62849e8a8aa50a7b97aa754a7ad7237f74b1
https://github.com/alexander-alderman-webb
alexander-alderman-webb https://github.com/alexander-alderman-webb
https://github.com/getsentry/sentry-python/pull/6609/files/492b4db765eb3f1971e0f23431153b70425dd5a2
https://github.com/sl0thentr0py
sl0thentr0py https://github.com/sl0thentr0py
https://github.com/getsentry/sentry-python/pull/6609/files/cd25110fc8ffc1500af30947a0c53f6b08011d33
https://github.com/wahajahmed010
wahajahmed010 https://github.com/wahajahmed010
https://github.com/getsentry/sentry-python/pull/6609/files/492b4db765eb3f1971e0f23431153b70425dd5a2
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
Sentry detects N+1 queries in server side cursor https://github.com/getsentry/sentry-python/issues/6576
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6609
https://github.com/ericapisani
https://github.com/sl0thentr0py
https://github.com/wahajahmed010
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.