| 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:8485fa90-085a-64f0-516a-820937266835 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A78C:1E3D3D:2A27DD:3A79B1:6B008831 |
| html-safe-nonce | 96b20420c4ba947f128754ce2100481994feecd9084699497b4216f7931255a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzhDOjFFM0QzRDoyQTI3REQ6M0E3OUIxOjZCMDA4ODMxIiwidmlzaXRvcl9pZCI6IjIwMjMyMTAzMDAwOTM3OTQzNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f8ab67a6047fbe0ee23767dfa4f41e1ceba1e2dd47888d84aadd167f7ec32475 |
| hovercard-subject-tag | pull_request:2653191361 |
| 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/4566/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/7a0103869e30bfb4c3b60c57d76714c0ac0857b3ce3f47926655f3deb6e24b0e/getsentry/sentry-python/pull/4566 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a0103869e30bfb4c3b60c57d76714c0ac0857b3ce3f47926655f3deb6e24b0e/getsentry/sentry-python/pull/4566 |
| og:image:alt | Update token usage recording to work if the LLM is calling them prompt_tokens or input_tokens. Same for completion_tokens and output_tokens. Records also cached and reasoning tokens usage.
Because ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antonpirker |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61 |
| 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 | db758f8e02b8257935fb03edf81a3e76eb3abd11 |
| 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/4566#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4566 |
| 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%2F4566 |
| 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/4566 |
| Reload | https://github.com/getsentry/sentry-python/pull/4566 |
| Reload | https://github.com/getsentry/sentry-python/pull/4566 |
| 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 requests41 (41) | 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 |
| antonpirker | https://github.com/antonpirker |
| master | https://github.com/getsentry/sentry-python/tree/master |
| antonpirker/openai-token-usage | https://github.com/getsentry/sentry-python/tree/antonpirker/openai-token-usage |
| Conversation | https://github.com/getsentry/sentry-python/pull/4566 |
| Commits5 (5) | https://github.com/getsentry/sentry-python/pull/4566/commits |
| Checks | https://github.com/getsentry/sentry-python/pull/4566/checks |
| Files changed | https://github.com/getsentry/sentry-python/pull/4566/files |
| Improve token usage recording | https://github.com/getsentry/sentry-python/pull/4566#top |
| antonpirker | https://github.com/antonpirker |
| master | https://github.com/getsentry/sentry-python/tree/master |
| antonpirker/openai-token-usage | https://github.com/getsentry/sentry-python/tree/antonpirker/openai-token-usage |
|
| https://github.com/antonpirker |
| antonpirker | https://github.com/antonpirker |
| Jul 9, 2025 | https://github.com/getsentry/sentry-python/pull/4566#issue-3216256495 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4566 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4566 |
|
| https://github.com/antonpirker |
| Updated recording of token usage | https://github.com/getsentry/sentry-python/pull/4566/commits/f864566faed6be7a1ed54cd23c0f44033021100c |
| f864566 | https://github.com/getsentry/sentry-python/pull/4566/commits/f864566faed6be7a1ed54cd23c0f44033021100c |
| https://github.com/apps/codecov |
| codecov | https://github.com/apps/codecov |
| Jul 9, 2025 | https://github.com/getsentry/sentry-python/pull/4566#issuecomment-3053005117 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4566 |
| Codecov | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry |
| (657c2b1) | https://app.codecov.io/gh/getsentry/sentry-python/commit/657c2b159a20b9c4280157f3cbd44c251f211228?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry |
| (520c3d7) | https://app.codecov.io/gh/getsentry/sentry-python/commit/520c3d725411b0702401d94aab9321a82264ca1b?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry |
| Files with missing lines | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry |
| sentry_sdk/ai/monitoring.py | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&filepath=sentry_sdk%2Fai%2Fmonitoring.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9haS9tb25pdG9yaW5nLnB5 |
| 2 Missing and 2 partials ⚠️ | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry |
| sentry_sdk/integrations/openai.py | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fopenai.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvb3BlbmFpLnB5 |
| 2 Missing and 1 partial ⚠️ | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry |
| Files with missing lines | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry |
| sentry_sdk/integrations/anthropic.py | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fanthropic.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvYW50aHJvcGljLnB5 |
| sentry_sdk/integrations/cohere.py | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fcohere.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvY29oZXJlLnB5 |
| sentry_sdk/integrations/huggingface_hub.py | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fhuggingface_hub.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvaHVnZ2luZ2ZhY2VfaHViLnB5 |
| sentry_sdk/integrations/langchain.py | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Flangchain.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvbGFuZ2NoYWluLnB5 |
| sentry_sdk/integrations/openai.py | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fopenai.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvb3BlbmFpLnB5 |
| sentry_sdk/ai/monitoring.py | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566?src=pr&el=tree&filepath=sentry_sdk%2Fai%2Fmonitoring.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9haS9tb25pdG9yaW5nLnB5 |
| 3 files with indirect coverage changes | https://app.codecov.io/gh/getsentry/sentry-python/pull/4566/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4566 |
|
| https://github.com/antonpirker |
| updated tests | https://github.com/getsentry/sentry-python/pull/4566/commits/1fe97c903d9916256b500a7ff09cad93e177292a |
| 1fe97c9 | https://github.com/getsentry/sentry-python/pull/4566/commits/1fe97c903d9916256b500a7ff09cad93e177292a |
| https://github.com/antonpirker |
| antonpirker | https://github.com/antonpirker |
| July 10, 2025 08:01 | https://github.com/getsentry/sentry-python/pull/4566#event-18560263300 |
| July 10, 2025 13:11 | https://github.com/getsentry/sentry-python/pull/4566#event-18565777110 |
| antonpirker | https://github.com/antonpirker |
| July 15, 2025 14:17 | https://github.com/getsentry/sentry-python/pull/4566#commits-pushed-6b816f7 |
|
| https://github.com/antonpirker |
| Merge branch 'master' into antonpirker/openai-token-usage | https://github.com/getsentry/sentry-python/pull/4566/commits/6b816f748c1b4a3f55609333af1e34452b31210d |
| 6b816f7 | https://github.com/getsentry/sentry-python/pull/4566/commits/6b816f748c1b4a3f55609333af1e34452b31210d |
|
| https://github.com/antonpirker |
| better comments | https://github.com/getsentry/sentry-python/pull/4566/commits/e7ed400a5d73dd26d78f1271b1f1c21d06bb6d2e |
| e7ed400 | https://github.com/getsentry/sentry-python/pull/4566/commits/e7ed400a5d73dd26d78f1271b1f1c21d06bb6d2e |
| https://github.com/antonpirker |
| antonpirker | https://github.com/antonpirker |
| July 15, 2025 12:40 | https://github.com/getsentry/sentry-python/pull/4566#event-18637583617 |
| https://github.com/antonpirker |
| antonpirker | https://github.com/antonpirker |
| code owner | https://github.com/getsentry/sentry-python/blob/657c2b159a20b9c4280157f3cbd44c251f211228/.github/CODEOWNERS#L1 |
| July 15, 2025 12:40 | https://github.com/getsentry/sentry-python/pull/4566#event-18637583817 |
| https://github.com/antonpirker |
| antonpirker | https://github.com/antonpirker |
|
Jul 15, 2025
| https://github.com/getsentry/sentry-python/pull/4566#ref-pullrequest-3215866799 |
|
Add support for OpenAi responses API
#4564
| https://github.com/getsentry/sentry-python/pull/4564 |
| https://github.com/sentrivana |
| sentrivana | https://github.com/sentrivana |
|
Jul 15, 2025
| https://github.com/getsentry/sentry-python/pull/4566#pullrequestreview-3020754022 |
|
View reviewed changes
| https://github.com/getsentry/sentry-python/pull/4566/files/e7ed400a5d73dd26d78f1271b1f1c21d06bb6d2e |
| sentrivana | https://github.com/sentrivana |
| https://github.com/getsentry/sentry-python/pull/4566#pullrequestreview-3020754022 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4566 |
| sentry_sdk/integrations/openai.py | https://github.com/getsentry/sentry-python/pull/4566/files/e7ed400a5d73dd26d78f1271b1f1c21d06bb6d2e#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4566 |
|
| https://github.com/antonpirker |
|
| https://github.com/sentrivana |
| Update sentry_sdk/integrations/openai.py | https://github.com/getsentry/sentry-python/pull/4566/commits/520c3d725411b0702401d94aab9321a82264ca1b |
| 520c3d7 | https://github.com/getsentry/sentry-python/pull/4566/commits/520c3d725411b0702401d94aab9321a82264ca1b |
| https://github.com/antonpirker |
| antonpirker | https://github.com/antonpirker |
| July 15, 2025 14:47 | https://github.com/getsentry/sentry-python/pull/4566#event-18640292672 |
| https://github.com/antonpirker |
| antonpirker | https://github.com/antonpirker |
| 2ccab61 | https://github.com/getsentry/sentry-python/commit/2ccab61dfd5dee9135d9b7e5fb25d184f5dfd52c |
| Jul 15, 2025 | https://github.com/getsentry/sentry-python/pull/4566#event-18640428419 |
| https://github.com/antonpirker |
| antonpirker | https://github.com/antonpirker |
| July 15, 2025 14:54 | https://github.com/getsentry/sentry-python/pull/4566#event-18640428664 |
| 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%2F4566 |
|
| https://github.com/sentrivana |
|
sentrivana
| https://github.com/sentrivana |
|
| https://github.com/getsentry/sentry-python/pull/4566/files/e7ed400a5d73dd26d78f1271b1f1c21d06bb6d2e |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4566 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4566 |
|
| https://github.com/antonpirker |
|
| https://github.com/sentrivana |
|
| 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 |