René's URL Explorer Experiment


Title: `asyncio.iscoroutinefunction` usage in integrations raises deprecation warning on 3.14 · Issue #6085 · getsentry/sentry-python · GitHub

Open Graph Title: `asyncio.iscoroutinefunction` usage in integrations raises deprecation warning on 3.14 · Issue #6085 · getsentry/sentry-python

X Title: `asyncio.iscoroutinefunction` usage in integrations raises deprecation warning on 3.14 · Issue #6085 · getsentry/sentry-python

Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.58.0 Steps to Reproduce On Python 3.14.4, asyncio.iscoroutinefunction is deprecated in favour of inspect.iscoroutinefunction. https://github.com/python/cpython/blob/2fdccb3f88603cb...

Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.58.0 Steps to Reproduce On Python 3.14.4, asyncio.iscoroutinefunction is deprecated in favour of inspect.iscoroutinefunction. https://github...

X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.58.0 Steps to Reproduce On Python 3.14.4, asyncio.iscoroutinefunction is deprecated in favour of inspect.iscoroutinefunction. https://github...

Opengraph URL: https://github.com/getsentry/sentry-python/issues/6085

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`asyncio.iscoroutinefunction` usage in integrations raises deprecation warning on 3.14","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n2.58.0\n\n### Steps to Reproduce\n\nOn Python 3.14.4, `asyncio.iscoroutinefunction` is deprecated in favour of `inspect.iscoroutinefunction`.\n\nhttps://github.com/python/cpython/blob/2fdccb3f88603cb72d311ca304ab7fcf9df12d00/Lib/asyncio/coroutines.py#L20-L27\n\nThis raises a warning when using FastAPI's integration, in both `sentry_sdk/integrations/starlette.py` and `sentry_sdk/integrations/fastapi.py`\n\nI manually converted them to use `inspect` in my `venv`s site package and the warning disappeared as expected. I have not checked for all usage of `asyncio.iscoroutinefunction`.\n\nReproduction using `pytest`\n\n```python\n# main.py\nfrom fastapi import FastAPI\nimport sentry_sdk\nfrom sentry_sdk.integrations.fastapi import FastApiIntegration\n\nsentry_sdk.init(\n    dsn=\"valid-dsn\",\n    integrations=[FastApiIntegration()],\n)\n\napp = FastAPI()\n\n@app.get(\"/\")\nasync def root():\n    return {\"message\": \"Hello World\"}\n\n# test_main.py\nfrom main import app\nfrom fastapi.testclient import TestClient\n\nclient = TestClient(app)\n\ndef test_app():\n    response = client.get(\"/\")\n    assert response.status_code == 200\n```\n\n```\nPackage              Version\n-------------------- ---------\nannotated-doc        0.0.4\nannotated-types      0.7.0\nanyio                4.13.0\ncertifi              2026.2.25\nclick                8.3.2\ndnspython            2.8.0\nemail-validator      2.3.0\nfastapi              0.136.0\nfastapi-cli          0.0.24\nfastapi-cloud-cli    0.17.0\nfastar               0.11.0\nh11                  0.16.0\nhttpcore             1.0.9\nhttptools            0.7.1\nhttpx                0.28.1\nidna                 3.11\niniconfig            2.3.0\njinja2               3.1.6\nmarkdown-it-py       4.0.0\nmarkupsafe           3.0.3\nmdurl                0.1.2\npackaging            26.1\npluggy               1.6.0\npydantic             2.13.1\npydantic-core        2.46.1\npydantic-extra-types 2.11.1\npydantic-settings    2.13.1\npygments             2.20.0\npytest               9.0.3\npython-dotenv        1.2.2\npython-multipart     0.0.26\npyyaml               6.0.3\nrich                 15.0.0\nrich-toolkit         0.19.7\nrignore              0.7.6\nsentry-sdk           2.58.0\nshellingham          1.5.4\nstarlette            1.0.0\ntyper                0.24.1\ntyping-extensions    4.15.0\ntyping-inspection    0.4.2\nurllib3              2.6.3\nuvicorn              0.44.0\nuvloop               0.22.1\nwatchfiles           1.1.1\nwebsockets           16.0\n```\n\n### Expected Result\n\nNo warnings when using integrations.\n\n### Actual Result\n\n```\n================================================== warnings summary ==================================================\n.venv/lib/python3.14/site-packages/sentry_sdk/integrations/starlette.py:427\n.venv/lib/python3.14/site-packages/sentry_sdk/integrations/starlette.py:427\n.venv/lib/python3.14/site-packages/sentry_sdk/integrations/starlette.py:427\n.venv/lib/python3.14/site-packages/sentry_sdk/integrations/starlette.py:427\n  /home/cooper/scratch/sentry-python-repro/.venv/lib/python3.14/site-packages/sentry_sdk/integrations/starlette.py:427: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead\n    return asyncio.iscoroutinefunction(obj) or (\n\n.venv/lib/python3.14/site-packages/sentry_sdk/integrations/fastapi.py:76\n  /home/cooper/scratch/sentry-python-repro/.venv/lib/python3.14/site-packages/sentry_sdk/integrations/fastapi.py:76: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead\n    and not asyncio.iscoroutinefunction(dependant.call)\n```","author":{"url":"https://github.com/cooperoptigrid","@type":"Person","name":"cooperoptigrid"},"datePublished":"2026-04-16T23:13:42Z","url":"https://github.com/getsentry/sentry-python/issues/6085"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f4ad888e-80ad-9648-f0a8-ec87e3473ae5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8242:19F5F4:95BE6:CD95C:6B007F27
html-safe-nonce79b052ce71d28a7d0f9d9a6b3c9d8954a0840350274c735b9c3e08d788b83053
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjQyOjE5RjVGNDo5NUJFNjpDRDk1Qzo2QjAwN0YyNyIsInZpc2l0b3JfaWQiOiI2MDAyNDczODU2MDQyODI3NTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac921a385157175e66caf6c5ddca46209fbd99baa2ca057852a1a8e433ac688b65
hovercard-subject-tagissue:4279051158
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/6085/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8a1080ad1a742eec0e6cf1b237e428047dbe0c2d235f7a3cb521e6d11f5c30bf/getsentry/sentry-python/issues/6085
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8a1080ad1a742eec0e6cf1b237e428047dbe0c2d235f7a3cb521e6d11f5c30bf/getsentry/sentry-python/issues/6085
og:image:altHow do you use Sentry? Sentry Saas (sentry.io) Version 2.58.0 Steps to Reproduce On Python 3.14.4, asyncio.iscoroutinefunction is deprecated in favour of inspect.iscoroutinefunction. https://github...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecooperoptigrid
hostnamegithub.com
expected-hostnamegithub.com
None82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83
turbo-cache-controlno-preview
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
released1bc2aa1939001689f5ce935982c10a6138f745c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/issues/6085#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F6085
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%2Fissues%2F6085
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/issues/6085
Reloadhttps://github.com/getsentry/sentry-python/issues/6085
Reloadhttps://github.com/getsentry/sentry-python/issues/6085
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
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/6085
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/6085
asyncio.iscoroutinefunction usage in integrations raises deprecation warning on 3.14https://github.com/getsentry/sentry-python/issues/6085#top
https://github.com/alexander-alderman-webb
PythonSDKhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Python%22
https://github.com/cooperoptigrid
cooperoptigridhttps://github.com/cooperoptigrid
on Apr 16, 2026https://github.com/getsentry/sentry-python/issues/6085#issue-4279051158
https://github.com/python/cpython/blob/2fdccb3f88603cb72d311ca304ab7fcf9df12d00/Lib/asyncio/coroutines.py#L20-L27https://github.com/python/cpython/blob/2fdccb3f88603cb72d311ca304ab7fcf9df12d00/Lib/asyncio/coroutines.py#L20-L27
Nexthttps://github.com/getsentry/sentry-python/issues/6085?timeline_page=1
cooperoptigridhttps://github.com/cooperoptigrid
PythonSDKhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Python%22
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
on Apr 16, 2026https://github.com/getsentry/sentry-python/issues/6085#event-24586795836
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Apr 16, 2026https://github.com/getsentry/sentry-python/issues/6085#event-24586796868
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Apr 16, 2026https://github.com/getsentry/sentry-python/issues/6085#issuecomment-4264044427
Linear Codehttps://linear.app
PY-2378https://linear.app/getsentry/issue/PY-2378/asyncioiscoroutinefunction-usage-in-integrations-raises-deprecation
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Apr 16, 2026https://github.com/getsentry/sentry-python/issues/6085#event-24586798003
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Apr 16, 2026https://github.com/getsentry/sentry-python/issues/6085
https://github.com/cooperoptigrid
cooperoptigridhttps://github.com/cooperoptigrid
on Apr 16, 2026https://github.com/getsentry/sentry-python/issues/6085#issuecomment-4264160917
sentry-python/sentry_sdk/integrations/django/asgi.pyhttps://github.com/getsentry/sentry-python/blob/6ce096bc83fba9defff06b5b2a0c236073de26c9/sentry_sdk/integrations/django/asgi.py#L38-L51
6ce096bhttps://github.com/getsentry/sentry-python/commit/6ce096bc83fba9defff06b5b2a0c236073de26c9
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
on Apr 17, 2026https://github.com/getsentry/sentry-python/issues/6085#event-24599840210
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
on Apr 17, 2026https://github.com/getsentry/sentry-python/issues/6085#issuecomment-4266650712
@cooperoptigridhttps://github.com/cooperoptigrid
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Apr 17, 2026https://github.com/getsentry/sentry-python/issues/6085#event-24599921187
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Apr 17, 2026https://github.com/getsentry/sentry-python/issues/6085
https://github.com/cooperoptigrid
cooperoptigridhttps://github.com/cooperoptigrid
on Apr 17, 2026https://github.com/getsentry/sentry-python/issues/6085#issuecomment-4268815186
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Apr 17, 2026https://github.com/getsentry/sentry-python/issues/6085#event-24611050734
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Apr 17, 2026https://github.com/getsentry/sentry-python/issues/6085
ericapisanihttps://github.com/ericapisani
cooperoptigridhttps://github.com/cooperoptigrid
on Apr 20, 2026https://github.com/getsentry/sentry-python/issues/6085#event-24675580553
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jul 2, 2026https://github.com/getsentry/sentry-python/issues/6085
benhenryhttps://github.com/benhenry
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jul 17, 2026https://github.com/getsentry/sentry-python/issues/6085#event-28132665516
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jul 17, 2026https://github.com/getsentry/sentry-python/issues/6085
https://github.com/Digenis
Digenishttps://github.com/Digenis
on Jul 23, 2026https://github.com/getsentry/sentry-python/issues/6085#issuecomment-5059724965
#6869https://github.com/getsentry/sentry-python/pull/6869
#3027https://github.com/getsentry/sentry-python/pull/3027
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jul 23, 2026https://github.com/getsentry/sentry-python/issues/6085#event-28387934285
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jul 23, 2026https://github.com/getsentry/sentry-python/issues/6085
sentrivanahttps://github.com/sentrivana
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Aug 4, 2026https://github.com/getsentry/sentry-python/issues/6085#event-28938168179
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 4, 2026https://github.com/getsentry/sentry-python/issues/6085
https://github.com/Digenis
Digenishttps://github.com/Digenis
on Aug 10, 2026https://github.com/getsentry/sentry-python/issues/6085#issuecomment-5245238028
@alexander-alderman-webbhttps://github.com/alexander-alderman-webb
3e96fc3https://github.com/getsentry/sentry-python/commit/3e96fc3640350af89089067857c7dd1fa60f69b3
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Aug 10, 2026https://github.com/getsentry/sentry-python/issues/6085#event-29243791974
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 10, 2026https://github.com/getsentry/sentry-python/issues/6085
https://github.com/alexander-alderman-webb
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
on Aug 12, 2026https://github.com/getsentry/sentry-python/issues/6085#issuecomment-5263395645
@Digenishttps://github.com/Digenis
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
completedhttps://github.com/getsentry/sentry-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 12, 2026https://github.com/getsentry/sentry-python/issues/6085#event-29323906864
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Aug 12, 2026https://github.com/getsentry/sentry-python/issues/6085#event-29323908024
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-python/issues/6085
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/6085
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
PythonSDKhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Python%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
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.