Title: Crash when patching `pydantic-ai==1.63.0` · Issue #5567 · getsentry/sentry-python · GitHub
Open Graph Title: Crash when patching `pydantic-ai==1.63.0` · Issue #5567 · getsentry/sentry-python
X Title: Crash when patching `pydantic-ai==1.63.0` · Issue #5567 · getsentry/sentry-python
Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.53.0 Steps to Reproduce Install pydantic-ai==1.63.0 Run setup_integrations Expected Result No, error. Same behavior as prior versions. Actual Result pydantic_ai patcher crashes wit...
Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.53.0 Steps to Reproduce Install pydantic-ai==1.63.0 Run setup_integrations Expected Result No, error. Same behavior as prior versions. Actua...
X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.53.0 Steps to Reproduce Install pydantic-ai==1.63.0 Run setup_integrations Expected Result No, error. Same behavior as prior versions. Actua...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/5567
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash when patching `pydantic-ai==1.63.0`","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n2.53.0\n\n### Steps to Reproduce\n\n1. Install `pydantic-ai==1.63.0`\n2. Run setup_integrations\n\n### Expected Result\n\nNo, error. Same behavior as prior versions.\n\n### Actual Result\n\npydantic_ai patcher crashes with:\n\n```\n File \"/Users/anzepecar/job/app/config/settings.py\", line 1477, in \u003cmodule>\n sentry_sdk.init(\n ~~~~~~~~~~~~~~~^\n dsn=SENTRY_DSN,\n ^^^^^^^^^^^^^^^\n ...\u003c13 lines>...\n release=GIT_SHA,\n ^^^^^^^^^^^^^^^^\n )\n ^\n File \"/Users/anzepecar/job/app/.venv/lib/python3.13/site-packages/sentry_sdk/_init_implementation.py\", line 57, in _init\n client = sentry_sdk.Client(*args, **kwargs)\n File \"/Users/anzepecar/job/app/.venv/lib/python3.13/site-packages/sentry_sdk/client.py\", line 285, in __init__\n self._init_impl()\n ~~~~~~~~~~~~~~~^^\n File \"/Users/anzepecar/job/app/.venv/lib/python3.13/site-packages/sentry_sdk/client.py\", line 437, in _init_impl\n self.integrations = setup_integrations(\n ~~~~~~~~~~~~~~~~~~^\n self.options[\"integrations\"],\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...\u003c5 lines>...\n options=self.options,\n ^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n File \"/Users/anzepecar/job/app/.venv/lib/python3.13/site-packages/sentry_sdk/integrations/__init__.py\", line 258, in setup_integrations\n type(integration).setup_once()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"/Users/anzepecar/job/app/.venv/lib/python3.13/site-packages/sentry_sdk/integrations/pydantic_ai/__init__.py\", line 50, in setup_once\n _patch_tool_execution()\n ~~~~~~~~~~~~~~~~~~~~~^^\n File \"/Users/anzepecar/job/app/.venv/lib/python3.13/site-packages/sentry_sdk/integrations/pydantic_ai/patches/tools.py\", line 43, in _patch_tool_execution\n original_call_tool = ToolManager._call_tool\n ^^^^^^^^^^^^^^^^^^^^^^\nAttributeError: type object 'ToolManager' has no attribute '_call_tool'\n```","author":{"url":"https://github.com/anze3db","@type":"Person","name":"anze3db"},"datePublished":"2026-03-02T00:22:21Z","url":"https://github.com/getsentry/sentry-python/issues/5567"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:11b37eea-c19e-646c-de04-49868ac927ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8572:D5AA4:C4EB60:1085142:6B00F08F |
| html-safe-nonce | 422ef1a947f1363343b8dd6bda2cf78491b1491eacdc7427ca9a662db8bc4d92 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTcyOkQ1QUE0OkM0RUI2MDoxMDg1MTQyOjZCMDBGMDhGIiwidmlzaXRvcl9pZCI6Ijc4ODMxMDAzODgzOTQ1OTQ0NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a55b08315a75b57c0f4967e589d331c5b684594f6ed1a0468190532831eb05b5 |
| hovercard-subject-tag | issue:4008665708 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/5567/issue_layout |
| twitter:image | https://opengraph.githubassets.com/325df49e44c1d67d1301a44dd0cd52ac5aafdda0eb2ec7361fc847408b174c0b/getsentry/sentry-python/issues/5567 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/325df49e44c1d67d1301a44dd0cd52ac5aafdda0eb2ec7361fc847408b174c0b/getsentry/sentry-python/issues/5567 |
| og:image:alt | How do you use Sentry? Sentry Saas (sentry.io) Version 2.53.0 Steps to Reproduce Install pydantic-ai==1.63.0 Run setup_integrations Expected Result No, error. Same behavior as prior versions. Actua... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anze3db |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width