René's URL Explorer Experiment


Title: feat(asyncpg): Add cursor span support via BaseCursor method patching by ericapisani · Pull Request #6252 · getsentry/sentry-python · GitHub

Open Graph Title: feat(asyncpg): Add cursor span support via BaseCursor method patching by ericapisani · Pull Request #6252 · getsentry/sentry-python

X Title: feat(asyncpg): Add cursor span support via BaseCursor method patching by ericapisani · Pull Request #6252 · 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: Patch BaseCursor._bind_exec, _bind, and _exec instead of wrapping Connection.cursor creation. The old approach only captured cursor creation, not actual query execution. The new approach creates sp...

X Description: Patch BaseCursor._bind_exec, _bind, and _exec instead of wrapping Connection.cursor creation. The old approach only captured cursor creation, not actual query execution. The new approach creates sp...

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

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:a399d662-b262-35a0-92fb-e9c201267b9f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id988E:2BE220:11E6F0:189F54:6B00BC32
html-safe-nonce5c6f5fb38d2c6ee3839c6ff6624ee9fe9da6afeec0b611c42c98654c778bb2cb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODhFOjJCRTIyMDoxMUU2RjA6MTg5RjU0OjZCMDBCQzMyIiwidmlzaXRvcl9pZCI6IjE0OTQyMzMzMzE4MjU0MjU0NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac07f155733ab12a18c84c17f56abf7f03d701a06926778afd3aaafe6519793594
hovercard-subject-tagpull_request:3663497461
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/6252/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/01dfe7f29a1131710ff7930b86637667b35d9e2ddfce6dfca83b3719f5fb4fb7/getsentry/sentry-python/pull/6252
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/01dfe7f29a1131710ff7930b86637667b35d9e2ddfce6dfca83b3719f5fb4fb7/getsentry/sentry-python/pull/6252
og:image:altPatch BaseCursor._bind_exec, _bind, and _exec instead of wrapping Connection.cursor creation. The old approach only captured cursor creation, not actual query execution. The new approach creates sp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericapisani
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/6252#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F6252
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%2F6252
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/6252
Reloadhttps://github.com/getsentry/sentry-python/pull/6252
Reloadhttps://github.com/getsentry/sentry-python/pull/6252
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-2408-asyncpg-cursor-span-supporthttps://github.com/getsentry/sentry-python/tree/py-2408-asyncpg-cursor-span-support
Conversationhttps://github.com/getsentry/sentry-python/pull/6252
Commits4 (4)https://github.com/getsentry/sentry-python/pull/6252/commits
Checkshttps://github.com/getsentry/sentry-python/pull/6252/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/6252/files
feat(asyncpg): Add cursor span support via BaseCursor method patchinghttps://github.com/getsentry/sentry-python/pull/6252#top
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
py-2408-asyncpg-cursor-span-supporthttps://github.com/getsentry/sentry-python/tree/py-2408-asyncpg-cursor-span-support
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
May 11, 2026https://github.com/getsentry/sentry-python/pull/6252#issue-4423038187
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
#6215https://github.com/getsentry/sentry-python/pull/6215
#6240https://github.com/getsentry/sentry-python/issues/6240
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
ericapisanihttps://github.com/ericapisani
May 11, 2026 13:36https://github.com/getsentry/sentry-python/pull/6252#commits-pushed-6406ae7
https://github.com/ericapisani
feat(asyncpg): Add cursor span support via BaseCursor method patchinghttps://github.com/getsentry/sentry-python/pull/6252/commits/6406ae78e955f477de286147b7e2bee388edb78b
6406ae7https://github.com/getsentry/sentry-python/pull/6252/commits/6406ae78e955f477de286147b7e2bee388edb78b
#6240https://github.com/getsentry/sentry-python/issues/6240
https://github.com/ericapisani
Merge branch 'master' into py-2408-asyncpg-cursor-span-supporthttps://github.com/getsentry/sentry-python/pull/6252/commits/b81ac975efa5613f55cb634920ce1599a270db3c
b81ac97https://github.com/getsentry/sentry-python/pull/6252/commits/b81ac975efa5613f55cb634920ce1599a270db3c
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
May 11, 2026https://github.com/getsentry/sentry-python/pull/6252#issuecomment-4423333740
PY-2408https://linear.app/getsentry/issue/PY-2408
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
May 11, 2026https://github.com/getsentry/sentry-python/pull/6252#issuecomment-4423344976
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
Codecov Actionhttps://github.com/getsentry/codecov-action
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
May 11, 2026https://github.com/getsentry/sentry-python/pull/6252#issuecomment-4423345758
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
May 11, 2026https://github.com/getsentry/sentry-python/pull/6252#issuecomment-4423346354
@sentryhttps://github.com/sentry
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
skip-changelog https://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3Askip-changelog
skip-changelog https://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3Askip-changelog
May 11, 2026https://github.com/getsentry/sentry-python/pull/6252#event-25394616836
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
May 11, 2026 https://github.com/getsentry/sentry-python/pull/6252#pullrequestreview-4266129982
View reviewed changes https://github.com/getsentry/sentry-python/pull/6252/files/b81ac975efa5613f55cb634920ce1599a270db3c
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/6252#pullrequestreview-4266129982
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Cursor Bugbothttps://cursor.com/bugbot
b81ac97https://github.com/getsentry/sentry-python/commit/b81ac975efa5613f55cb634920ce1599a270db3c
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
Merge branch 'master' into py-2408-asyncpg-cursor-span-supporthttps://github.com/getsentry/sentry-python/pull/6252/commits/65c07eb90b2eb88c1db880b5811f8a70d9e357f1
65c07ebhttps://github.com/getsentry/sentry-python/pull/6252/commits/65c07eb90b2eb88c1db880b5811f8a70d9e357f1
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
May 11, 2026 https://github.com/getsentry/sentry-python/pull/6252#pullrequestreview-4266377872
View reviewed changes https://github.com/getsentry/sentry-python/pull/6252/files/65c07eb90b2eb88c1db880b5811f8a70d9e357f1
sentry_sdk/integrations/asyncpg.pyhttps://github.com/getsentry/sentry-python/pull/6252/files/65c07eb90b2eb88c1db880b5811f8a70d9e357f1#diff-e84ac0dfd297dc7cbebce1eabb50a946897e5fdc93771715fe3af475260cb180
ericapisanihttps://github.com/ericapisani
May 11, 2026https://github.com/getsentry/sentry-python/pull/6252#discussion_r3221275583
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
methodhttps://github.com/MagicStack/asyncpg/blob/db8ecc2a38e16fb0c090aef6f5506547c2831c24/asyncpg/cursor.py#L75
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
May 11, 2026 https://github.com/getsentry/sentry-python/pull/6252#pullrequestreview-4266446298
View reviewed changes https://github.com/getsentry/sentry-python/pull/6252/files/65c07eb90b2eb88c1db880b5811f8a70d9e357f1
tests/integrations/asyncpg/test_asyncpg.pyhttps://github.com/getsentry/sentry-python/pull/6252/files/65c07eb90b2eb88c1db880b5811f8a70d9e357f1#diff-5d4996fee03f01ce7636fa441782ac6e183e58147b842fcfc787120fcf75a1c6
ericapisanihttps://github.com/ericapisani
May 11, 2026https://github.com/getsentry/sentry-python/pull/6252#discussion_r3221331368
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
May 11, 2026 18:46https://github.com/getsentry/sentry-python/pull/6252#event-25396755333
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
code ownerhttps://github.com/getsentry/sentry-python/blob/c7187282c5d514ecabf110ab0e97c5b9fbc81d48/.github/CODEOWNERS#L1
May 11, 2026 18:46https://github.com/getsentry/sentry-python/pull/6252#event-25396755772
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
May 12, 2026 https://github.com/getsentry/sentry-python/pull/6252#pullrequestreview-4271389965
View reviewed changes https://github.com/getsentry/sentry-python/pull/6252/files/65c07eb90b2eb88c1db880b5811f8a70d9e357f1
sentrivanahttps://github.com/sentrivana
https://github.com/getsentry/sentry-python/pull/6252#pullrequestreview-4271389965
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
tests/integrations/asyncpg/test_asyncpg.pyhttps://github.com/getsentry/sentry-python/pull/6252/files/65c07eb90b2eb88c1db880b5811f8a70d9e357f1#diff-5d4996fee03f01ce7636fa441782ac6e183e58147b842fcfc787120fcf75a1c6
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
https://github.com/sentrivana
Update tests/integrations/asyncpg/test_asyncpg.pyhttps://github.com/getsentry/sentry-python/pull/6252/commits/72c0455f9529f17be03be0211c3f4c403c47fb79
72c0455https://github.com/getsentry/sentry-python/pull/6252/commits/72c0455f9529f17be03be0211c3f4c403c47fb79
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
0e47eadhttps://github.com/getsentry/sentry-python/commit/0e47eadedea808a4ca7865a480552872208be890
May 12, 2026https://github.com/getsentry/sentry-python/pull/6252#event-25429904463
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
May 12, 2026 12:34https://github.com/getsentry/sentry-python/pull/6252#event-25429906548
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
May 12, 2026 https://github.com/getsentry/sentry-python/pull/6252#ref-pullrequest-4408093273
feat(asyncpg): Add query source to execute, executemany, and cursor methods #6242 https://github.com/getsentry/sentry-python/pull/6242
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
May 13, 2026 https://github.com/getsentry/sentry-python/pull/6252#ref-issue-4438159170
publish: getsentry/sentry-python@2.60.0 getsentry/publish#8163 https://github.com/getsentry/publish/issues/8163
https://github.com/sk-
sk-https://github.com/sk-
Jun 15, 2026https://github.com/getsentry/sentry-python/pull/6252#issuecomment-4709297269
@ericapisanihttps://github.com/ericapisani
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Jun 15, 2026https://github.com/getsentry/sentry-python/pull/6252#issuecomment-4711567411
@sk-https://github.com/sk-
Sentry's detectionhttps://docs.sentry.io/product/issues/issue-details/performance-issues/n-one-queries/
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/sk-
sk-https://github.com/sk-
Jun 15, 2026 https://github.com/getsentry/sentry-python/pull/6252#ref-issue-4668732846
Sentry detects N+1 queries in server side cursor #6576 https://github.com/getsentry/sentry-python/issues/6576
mgalignianahttps://github.com/mgaligniana
Aug 9, 2026 https://github.com/getsentry/sentry-python/pull/6252#ref-commit-288210b
https://github.com/ericapisani
https://github.com/sentrivana
https://github.com/mgaligniana
feat(asyncpg): Add cursor span support via BaseCursor method patching (https://github.com/mgaligniana/sentry-python/commit/288210bb506c4746aba535a587b219cb4298616a
…https://github.com/getsentry/sentry-python/pull/6252
288210bhttps://github.com/mgaligniana/sentry-python/commit/288210bb506c4746aba535a587b219cb4298616a
…getsentry#6252https://github.com/getsentry/sentry-python/pull/6252
getsentry#6215https://github.com/getsentry/sentry-python/pull/6215
getsentry#6240https://github.com/getsentry/sentry-python/issues/6240
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%2F6252
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/6252/files/b81ac975efa5613f55cb634920ce1599a270db3c
https://github.com/sentrivana
sentrivana https://github.com/sentrivana
https://github.com/getsentry/sentry-python/pull/6252/files/65c07eb90b2eb88c1db880b5811f8a70d9e357f1
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
Investigate missing span coverage on queries run by an asyncpg Cursor https://github.com/getsentry/sentry-python/issues/6240
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6252
https://github.com/ericapisani
https://github.com/sk-
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.