| 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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:91241a01-d7f1-5aa3-933b-ba5ee1877838 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 83FE:363B2E:29C5AB:37FEB1:6B009DF2 |
| html-safe-nonce | 2234eab75277b5b5f2868e4c84369be12b29998ed5381f6fe4ca0e15398b1909 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0ZFOjM2M0IyRToyOUM1QUI6MzdGRUIxOjZCMDA5REYyIiwidmlzaXRvcl9pZCI6IjMyOTI2Mjc1NjU2Mjk0NDc2NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 91c37688151355c9c271a204131814c961d4f4b0ea5e9ccecd4727bfe98c5bdf |
| hovercard-subject-tag | pull_request:5377826571 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-python/8329/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/9ace45c16be2201238017477200e22f099214f2559c3ce5a0d676be0999f3ea3/getsentry/sentry-python/pull/8329 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ace45c16be2201238017477200e22f099214f2559c3ce5a0d676be0999f3ea3/getsentry/sentry-python/pull/8329 |
| og:image:alt | Description
Count the number of reasoning tokens in non-streaming anthropic responses in the anthropic integration.
Issues
resolves: #5802
resolves: PY-2208 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | srothh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8 |
| turbo-cache-control | no-cache |
| 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 | 1c9ddec8215f9a94e295c8310c3579b9c54ba31a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/getsentry/sentry-python/pull/8329#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F8329 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F8329 |
| Sign up | https://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 |
| Reload | https://github.com/getsentry/sentry-python/pull/8329 |
| Reload | https://github.com/getsentry/sentry-python/pull/8329 |
| Reload | https://github.com/getsentry/sentry-python/pull/8329 |
| getsentry | https://github.com/getsentry |
| sentry-python | https://github.com/getsentry/sentry-python |
| Code | https://github.com/getsentry/sentry-python |
| Issues345 (345) | https://github.com/getsentry/sentry-python/issues |
| Pull requests42 (42) | https://github.com/getsentry/sentry-python/pulls |
| Discussions | https://github.com/getsentry/sentry-python/discussions |
| Actions | https://github.com/getsentry/sentry-python/actions |
| Security and quality2 (2) | https://github.com/getsentry/sentry-python/security |
| Insights | https://github.com/getsentry/sentry-python/insights |
| https://github.com/getsentry/sentry-python |
| srothh | https://github.com/srothh |
| master | https://github.com/getsentry/sentry-python/tree/master |
| srothh/anthropic-output-tokens-reasoning-attributes | https://github.com/getsentry/sentry-python/tree/srothh/anthropic-output-tokens-reasoning-attributes |
| Conversation | https://github.com/getsentry/sentry-python/pull/8329 |
| Commits6 (6) | https://github.com/getsentry/sentry-python/pull/8329/commits |
| Checks | https://github.com/getsentry/sentry-python/pull/8329/checks |
| Files changed | https://github.com/getsentry/sentry-python/pull/8329/files |
| feat(anthropic): Set gen_ai.usage.output_tokens.reasoning attributes for non-streaming responses | https://github.com/getsentry/sentry-python/pull/8329#top |
| srothh | https://github.com/srothh |
| master | https://github.com/getsentry/sentry-python/tree/master |
| srothh/anthropic-output-tokens-reasoning-attributes | https://github.com/getsentry/sentry-python/tree/srothh/anthropic-output-tokens-reasoning-attributes |
|
| https://github.com/srothh |
| srothh | https://github.com/srothh |
| Nov 18, 2026 | https://github.com/getsentry/sentry-python/pull/8329#issue-6469339749 |
| #5802 | https://github.com/getsentry/sentry-python/issues/5802 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
| srothh | https://github.com/srothh |
| November 18, 2026 13:58 | https://github.com/getsentry/sentry-python/pull/8329#commits-pushed-bcfc0e5 |
|
| https://github.com/srothh |
| feat(anthropic): Set gen_ai.usage.output_to | https://github.com/getsentry/sentry-python/pull/8329/commits/bcfc0e527402be08cba3b2a04f8dc47cbfa2744d |
| bcfc0e5 | https://github.com/getsentry/sentry-python/pull/8329/commits/bcfc0e527402be08cba3b2a04f8dc47cbfa2744d |
| #5802 | https://github.com/getsentry/sentry-python/issues/5802 |
|
| https://github.com/srothh |
| test(anthropic): Add tests for output_reasoning_tokens | https://github.com/getsentry/sentry-python/pull/8329/commits/71cf7a7eb3cfa7cc75b0de2f7532a86850787154 |
| #5802 | https://github.com/getsentry/sentry-python/issues/5802 |
| 71cf7a7 | https://github.com/getsentry/sentry-python/pull/8329/commits/71cf7a7eb3cfa7cc75b0de2f7532a86850787154 |
|
| https://github.com/srothh |
| ref(anthropic): Remove _RecordedUsage change from non-streaming branch | https://github.com/getsentry/sentry-python/pull/8329/commits/ac8ebf4a5d285347c9c6872627fa17137e48a586 |
| ac8ebf4 | https://github.com/getsentry/sentry-python/pull/8329/commits/ac8ebf4a5d285347c9c6872627fa17137e48a586 |
| https://github.com/apps/linear-code |
| linear-code | https://github.com/apps/linear-code |
| Nov 18, 2026 | https://github.com/getsentry/sentry-python/pull/8329#issuecomment-6981412934 |
| PY-2208 | https://linear.app/getsentry/issue/PY-2208 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Nov 18, 2026 | https://github.com/getsentry/sentry-python/pull/8329#issuecomment-6981678284 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
| sentry_sdk/integrations/anthropic.py | https://github.com/getsentry/sentry-python/pull/8329/files#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05 |
| Coverage Action | https://github.com/getsentry/coverage-action |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
| https://github.com/srothh |
| srothh | https://github.com/srothh |
| November 18, 2026 14:37 | https://github.com/getsentry/sentry-python/pull/8329#event-36539363659 |
| https://github.com/srothh |
| srothh | https://github.com/srothh |
| code owner | https://github.com/getsentry/sentry-python/blob/aa7c9e1ba3424e42f2b7318b1d61f99d59777904/.github/CODEOWNERS#L1 |
| November 18, 2026 14:37 | https://github.com/getsentry/sentry-python/pull/8329#event-36539364928 |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
|
Nov 18, 2026
| https://github.com/getsentry/sentry-python/pull/8329#pullrequestreview-5959207815 |
|
View reviewed changes
| https://github.com/getsentry/sentry-python/pull/8329/files/ac8ebf4a5d285347c9c6872627fa17137e48a586 |
| tests/integrations/anthropic/test_anthropic.py | https://github.com/getsentry/sentry-python/pull/8329/files/ac8ebf4a5d285347c9c6872627fa17137e48a586#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
|
| https://github.com/srothh |
| test(anthropic): Remove unnessecary parametrization from reasoning to… | https://github.com/getsentry/sentry-python/pull/8329/commits/fea2b6197cb3d2e0d4aeb653228a725526e0823f |
| fea2b61 | https://github.com/getsentry/sentry-python/pull/8329/commits/fea2b6197cb3d2e0d4aeb653228a725526e0823f |
| #5802 | https://github.com/getsentry/sentry-python/issues/5802 |
| https://github.com/alexander-alderman-webb |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
|
Nov 18, 2026
| https://github.com/getsentry/sentry-python/pull/8329#pullrequestreview-5959639151 |
|
View reviewed changes
| https://github.com/getsentry/sentry-python/pull/8329/files/fea2b6197cb3d2e0d4aeb653228a725526e0823f |
| srothh | https://github.com/srothh |
| November 19, 2026 10:24 | https://github.com/getsentry/sentry-python/pull/8329#commits-pushed-9d4ffb8 |
|
| https://github.com/srothh |
| feat(anthropic): Set gen_ai.usage.output_tokens.reasoning attributes … | https://github.com/getsentry/sentry-python/pull/8329/commits/9d4ffb88a7199e374611363a6158362e0233faf6 |
| 9d4ffb8 | https://github.com/getsentry/sentry-python/pull/8329/commits/9d4ffb88a7199e374611363a6158362e0233faf6 |
| #8330 | https://github.com/getsentry/sentry-python/pull/8330 |
|
| https://github.com/srothh |
| Merge branch 'master' into srothh/anthropic-output-tokens-reasoning-a… | https://github.com/getsentry/sentry-python/pull/8329/commits/cf28b45fcd1e60db3443671108c014be50a274c0 |
| cf28b45 | https://github.com/getsentry/sentry-python/pull/8329/commits/cf28b45fcd1e60db3443671108c014be50a274c0 |
| https://github.com/apps/cursor |
| cursor | https://github.com/apps/cursor |
|
Nov 19, 2026
| https://github.com/getsentry/sentry-python/pull/8329#pullrequestreview-5972411091 |
|
View reviewed changes
| https://github.com/getsentry/sentry-python/pull/8329/files/cf28b45fcd1e60db3443671108c014be50a274c0 |
| cursor | https://github.com/apps/cursor |
| https://github.com/getsentry/sentry-python/pull/8329#pullrequestreview-5972411091 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTo4M2E5NTc2MS0wNDgxLTRiOGYtOWYyZS0yMWJkYjRhYzIwNjYiLCJlbmNyeXB0aW9uS2V5IjoiY0FJWWUxNHIyNERkM0NuLWcwRDJYVk1IZlBLT1hKYWtpeTZ2OElOTXc2ayIsImJyYW5jaCI6InNyb3RoaC9hbnRocm9waWMtb3V0cHV0LXRva2Vucy1yZWFzb25pbmctYXR0cmlidXRlcyIsInJlcG9Pd25lciI6ImdldHNlbnRyeSIsInJlcG9OYW1lIjoic2VudHJ5LXB5dGhvbiIsInByb3ZpZGVyIjoiZ2l0aHViIn19 |
| Cursor dashboard | https://www.cursor.com/dashboard/bugbot |
| Cursor dashboard | https://www.cursor.com/dashboard/bugbot/installation/11898 |
| Cursor Bugbot | https://cursor.com/bugbot |
| cf28b45 | https://github.com/getsentry/sentry-python/commit/cf28b45fcd1e60db3443671108c014be50a274c0 |
| here | https://www.cursor.com/dashboard/bugbot |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
| sentry_sdk/integrations/anthropic.py | https://github.com/getsentry/sentry-python/pull/8329/files/cf28b45fcd1e60db3443671108c014be50a274c0#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05 |
| cursor | https://github.com/apps/cursor |
| Nov 19, 2026 | https://github.com/getsentry/sentry-python/pull/8329#discussion_r4626726683 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| sentry_sdk/integrations/anthropic.py#L169-L170 | https://github.com/getsentry/sentry-python/blob/cf28b45fcd1e60db3443671108c014be50a274c0/sentry_sdk/integrations/anthropic.py#L169-L170 |
| sentry_sdk/integrations/anthropic.py#L817-L821 | https://github.com/getsentry/sentry-python/blob/cf28b45fcd1e60db3443671108c014be50a274c0/sentry_sdk/integrations/anthropic.py#L817-L821 |
| https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9DVVJTT1IiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OmE0ZDMxMDdhLTgxZDgtNDg3ZC1iMWIwLTcwNmRlYmVhOGM4NyIsImVuY3J5cHRpb25LZXkiOiJ3bXNmU1k1ZE4zOHhfaTRNS1NYZ2puSGd2Q2FjVEVjLVQ3eEpMekNWd0xNIiwiYnJhbmNoIjoic3JvdGhoL2FudGhyb3BpYy1vdXRwdXQtdG9rZW5zLXJlYXNvbmluZy1hdHRyaWJ1dGVzIiwicmVwb093bmVyIjoiZ2V0c2VudHJ5IiwicmVwb05hbWUiOiJzZW50cnktcHl0aG9uIiwicHJvdmlkZXIiOiJnaXRodWIifX0 |
| https://cursor.com/agents?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9XRUIiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OmE0ZDMxMDdhLTgxZDgtNDg3ZC1iMWIwLTcwNmRlYmVhOGM4NyIsImVuY3J5cHRpb25LZXkiOiJ3bXNmU1k1ZE4zOHhfaTRNS1NYZ2puSGd2Q2FjVEVjLVQ3eEpMekNWd0xNIiwiYnJhbmNoIjoic3JvdGhoL2FudGhyb3BpYy1vdXRwdXQtdG9rZW5zLXJlYXNvbmluZy1hdHRyaWJ1dGVzIiwicmVwb093bmVyIjoiZ2V0c2VudHJ5IiwicmVwb05hbWUiOiJzZW50cnktcHl0aG9uIiwicHJOdW1iZXIiOjgzMjksImNvbW1pdFNoYSI6ImNmMjhiNDVmY2QxZTYwZGIzNDQzNjcxMTA4YzAxNGJlNTBhMjc0YzAiLCJwcm92aWRlciI6ImdpdGh1YiJ9fQ |
| Cursor Bugbot | https://cursor.com/bugbot |
| cf28b45 | https://github.com/getsentry/sentry-python/commit/cf28b45fcd1e60db3443671108c014be50a274c0 |
| here | https://www.cursor.com/dashboard/bugbot |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
| https://github.com/srothh |
| srothh | https://github.com/srothh |
| 7499ae7 | https://github.com/getsentry/sentry-python/commit/7499ae7eb078337df175410d74fefc0822cab1fc |
| Nov 19, 2026 | https://github.com/getsentry/sentry-python/pull/8329#event-36633472541 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
| https://github.com/srothh |
| srothh | https://github.com/srothh |
| November 19, 2026 09:44 | https://github.com/getsentry/sentry-python/pull/8329#event-36633476885 |
| https://github.com/apps/sentry-release-bot |
| sentry-release-bot | https://github.com/apps/sentry-release-bot |
|
Nov 19, 2026
| https://github.com/getsentry/sentry-python/pull/8329#ref-issue-6486867410 |
|
publish: getsentry/sentry-python@3.0.0rc1
getsentry/publish#10507
| https://github.com/getsentry/publish/issues/10507 |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F8329 |
|
| https://github.com/apps/cursor |
|
cursor[bot]
| https://github.com/apps/cursor |
|
| https://github.com/getsentry/sentry-python/pull/8329/files/cf28b45fcd1e60db3443671108c014be50a274c0 |
|
| https://github.com/alexander-alderman-webb |
|
alexander-alderman-webb
| https://github.com/alexander-alderman-webb |
|
| https://github.com/getsentry/sentry-python/pull/8329/files/fea2b6197cb3d2e0d4aeb653228a725526e0823f |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
|
anthropic: Set gen_ai.usage.output_tokens.reasoning attributes
| https://github.com/getsentry/sentry-python/issues/5802 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/8329 |
|
| https://github.com/srothh |
|
| https://github.com/alexander-alderman-webb |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |