Title: `pydantic-ai` integration attribute error · Issue #5561 · getsentry/sentry-python · GitHub
Open Graph Title: `pydantic-ai` integration attribute error · Issue #5561 · getsentry/sentry-python
X Title: `pydantic-ai` integration attribute error · Issue #5561 · getsentry/sentry-python
Description: How do you use Sentry? Self-hosted/on-premise Version 2.53.0 Steps to Reproduce Versions: sentry-sdk==2.53.0 pydantic-ai-slim==1.63.0 on my app startup I get the error Expected Result Suggested fix suggest replacing original_call_tool = ...
Open Graph Description: How do you use Sentry? Self-hosted/on-premise Version 2.53.0 Steps to Reproduce Versions: sentry-sdk==2.53.0 pydantic-ai-slim==1.63.0 on my app startup I get the error Expected Result Suggested fix...
X Description: How do you use Sentry? Self-hosted/on-premise Version 2.53.0 Steps to Reproduce Versions: sentry-sdk==2.53.0 pydantic-ai-slim==1.63.0 on my app startup I get the error Expected Result Suggested fix...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/5561
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`pydantic-ai` integration attribute error","articleBody":"### How do you use Sentry?\n\nSelf-hosted/on-premise\n\n### Version\n\n2.53.0\n\n### Steps to Reproduce\n\nVersions:\n- sentry-sdk==2.53.0\n- pydantic-ai-slim==1.63.0\n\non my app startup I get the error\n\n### Expected Result\n\n### Suggested fix\nsuggest replacing `original_call_tool = ToolManager._call_tool` via `original_call_tool = ToolManager.handle_call` in `sentry_sdk/integrations/pydantic_ai/patches/tools.py`\n\n### Actual Result\n\nError traceback:\n\n```bash\n File \".venv\\Lib\\site-packages\\sentry_sdk\\integrations\\__init__.py\", line 258, in setup_integrations\n type(integration).setup_once()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\tochka\\Projects\\assistant-backend\\.venv\\Lib\\site-packages\\sentry_sdk\\integrations\\pydantic_ai\\__init__.py\", line 50, in setup_once\n _patch_tool_execution()\n ~~~~~~~~~~~~~~~~~~~~~^^\n File \".venv\\Lib\\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/Simon-Druchinin","@type":"Person","name":"Simon-Druchinin"},"datePublished":"2026-02-27T05:28:12Z","url":"https://github.com/getsentry/sentry-python/issues/5561"}
| 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:4109cbce-9a2a-97bc-6cf1-b7bf1800a8d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 866A:2E3FEE:74DAA7:958034:6B00E3BB |
| html-safe-nonce | 5600b69d12f3088e910e23271a2c34eb028d9bfd6dd9ab77356301d24b63f0a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjZBOjJFM0ZFRTo3NERBQTc6OTU4MDM0OjZCMDBFM0JCIiwidmlzaXRvcl9pZCI6IjU0NjE5NDk1MTYwMTE4NTY4MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7110e930207f47092de575b98b1116365f256d23359443d7e463adf190c12cff |
| hovercard-subject-tag | issue:3999180533 |
| 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/5561/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df49efcc16ac59dc78bc56a8bb25f3e4cf1f69d63eac9bf69e917cccfdd20c0a/getsentry/sentry-python/issues/5561 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df49efcc16ac59dc78bc56a8bb25f3e4cf1f69d63eac9bf69e917cccfdd20c0a/getsentry/sentry-python/issues/5561 |
| og:image:alt | How do you use Sentry? Self-hosted/on-premise Version 2.53.0 Steps to Reproduce Versions: sentry-sdk==2.53.0 pydantic-ai-slim==1.63.0 on my app startup I get the error Expected Result Suggested fix... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Simon-Druchinin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width