René's URL Explorer Experiment


Title: feat(anthropic): Set gen_ai.response.finish_reasons on span by ericapisani · Pull Request #5663 · getsentry/sentry-python · GitHub

Open Graph Title: feat(anthropic): Set gen_ai.response.finish_reasons on span by ericapisani · Pull Request #5663 · getsentry/sentry-python

X Title: feat(anthropic): Set gen_ai.response.finish_reasons on span by ericapisani · Pull Request #5663 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: Set the gen_ai.response.finish_reasons span attribute from Anthropic API responses. Extracts stop_reason from both non-streaming (result.stop_reason) and streaming (message_delta event) responses. ...

X Description: Set the gen_ai.response.finish_reasons span attribute from Anthropic API responses. Extracts stop_reason from both non-streaming (result.stop_reason) and streaming (message_delta event) responses. ...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/5663

X: @github

direct link

Domain: redirect.github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0d44aa4b-bdc3-8052-aef0-a21c1787acb4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id83FE:3897F3:8812FD:B1CF0B:6B00DD8B
html-safe-nonce46ace40c14b6e5e8e5a1e7017a48a71b702fe4c124d788f6b98d2ac189c19f5b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0ZFOjM4OTdGMzo4ODEyRkQ6QjFDRjBCOjZCMDBERDhCIiwidmlzaXRvcl9pZCI6IjQ2OTY0Nzk2NzQwNTY4OTE3ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0d223d5d3760b6173b630aef9dc6116b34f579e8bb003233f61d30b6f5c5c98b
hovercard-subject-tagpull_request:3394468721
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-python/5663/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/51606b459253dfc05cb7c88688e13d4d8211ebff6aa514535d0eee0b948892aa/getsentry/sentry-python/pull/5663
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/51606b459253dfc05cb7c88688e13d4d8211ebff6aa514535d0eee0b948892aa/getsentry/sentry-python/pull/5663
og:image:altSet the gen_ai.response.finish_reasons span attribute from Anthropic API responses. Extracts stop_reason from both non-streaming (result.stop_reason) and streaming (message_delta event) responses. ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericapisani
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
turbo-cache-controlno-cache
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
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://redirect.github.com/getsentry/sentry-python/pull/5663#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5663
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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5663
Sign uphttps://redirect.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
Reloadhttps://redirect.github.com/getsentry/sentry-python/pull/5663
Reloadhttps://redirect.github.com/getsentry/sentry-python/pull/5663
Reloadhttps://redirect.github.com/getsentry/sentry-python/pull/5663
getsentryhttps://redirect.github.com/getsentry
sentry-pythonhttps://redirect.github.com/getsentry/sentry-python
Codehttps://redirect.github.com/getsentry/sentry-python
Issues345 (345)https://redirect.github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://redirect.github.com/getsentry/sentry-python/pulls
Discussionshttps://redirect.github.com/getsentry/sentry-python/discussions
Actionshttps://redirect.github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://redirect.github.com/getsentry/sentry-python/security
Insightshttps://redirect.github.com/getsentry/sentry-python/insights
https://redirect.github.com/getsentry/sentry-python
ericapisanihttps://redirect.github.com/ericapisani
masterhttps://redirect.github.com/getsentry/sentry-python/tree/master
ep/py-2136-set-finish-reason-anthropic-r3qhttps://redirect.github.com/getsentry/sentry-python/tree/ep/py-2136-set-finish-reason-anthropic-r3q
Conversationhttps://redirect.github.com/getsentry/sentry-python/pull/5663
Commits2 (2)https://redirect.github.com/getsentry/sentry-python/pull/5663/commits
Checkshttps://redirect.github.com/getsentry/sentry-python/pull/5663/checks
Files changedhttps://redirect.github.com/getsentry/sentry-python/pull/5663/files
feat(anthropic): Set gen_ai.response.finish_reasons on spanhttps://redirect.github.com/getsentry/sentry-python/pull/5663#top
ericapisanihttps://redirect.github.com/ericapisani
masterhttps://redirect.github.com/getsentry/sentry-python/tree/master
ep/py-2136-set-finish-reason-anthropic-r3qhttps://redirect.github.com/getsentry/sentry-python/tree/ep/py-2136-set-finish-reason-anthropic-r3q
https://redirect.github.com/ericapisani
ericapisanihttps://redirect.github.com/ericapisani
Mar 13, 2026https://redirect.github.com/getsentry/sentry-python/pull/5663#issue-4070357739
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
OpenTelemetry semantic conventionshttps://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/
#5658https://github.com/getsentry/sentry-python/issues/5658
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
ericapisanihttps://redirect.github.com/ericapisani
March 13, 2026 10:49https://redirect.github.com/getsentry/sentry-python/pull/5663#commits-pushed-20febec
https://redirect.github.com/ericapisani
https://redirect.github.com/claude
feat(anthropic): Set gen_ai.response.finish_reasons on spanhttps://redirect.github.com/getsentry/sentry-python/pull/5663/commits/20febec2e1f8e9d1a2826bb2379bdd9bb3f01db1
20febechttps://redirect.github.com/getsentry/sentry-python/pull/5663/commits/20febec2e1f8e9d1a2826bb2379bdd9bb3f01db1
https://redirect.github.com/ericapisani
https://redirect.github.com/claude
fix(anthropic): Set finish_reasons as array per OTel conventionshttps://redirect.github.com/getsentry/sentry-python/pull/5663/commits/3f3ddda5fbb628555807052a8da9a39f73f95d95
3f3dddahttps://redirect.github.com/getsentry/sentry-python/pull/5663/commits/3f3ddda5fbb628555807052a8da9a39f73f95d95
https://redirect.github.com/apps/linear-code
linear-codehttps://redirect.github.com/apps/linear-code
Mar 13, 2026https://redirect.github.com/getsentry/sentry-python/pull/5663#issuecomment-4054267415
PY-2136 [Anthropic integration] Set `gen_ai.response.finish_reason` on span when availablehttps://linear.app/getsentry/issue/PY-2136/anthropic-integration-set-gen-airesponsefinish-reason-on-span-when
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
https://redirect.github.com/apps/github-actions
github-actionshttps://redirect.github.com/apps/github-actions
Mar 13, 2026https://redirect.github.com/getsentry/sentry-python/pull/5663#issuecomment-4054269501
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
https://redirect.github.com/apps/github-actions
github-actionshttps://redirect.github.com/apps/github-actions
Mar 13, 2026https://redirect.github.com/getsentry/sentry-python/pull/5663#issuecomment-4054274800
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
Codecov Actionhttps://github.com/getsentry/codecov-action
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
https://redirect.github.com/ericapisani
ericapisanihttps://redirect.github.com/ericapisani
March 13, 2026 11:04https://redirect.github.com/getsentry/sentry-python/pull/5663#event-23541965693
https://redirect.github.com/ericapisani
ericapisanihttps://redirect.github.com/ericapisani
code ownerhttps://redirect.github.com/getsentry/sentry-python/blob/a3ee8aad58173b239e4bcc293caee6f11e0c8e32/.github/CODEOWNERS#L1
March 13, 2026 11:04https://redirect.github.com/getsentry/sentry-python/pull/5663#event-23541965974
https://redirect.github.com/alexander-alderman-webb
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
Mar 16, 2026 https://redirect.github.com/getsentry/sentry-python/pull/5663#pullrequestreview-3952487323
View reviewed changes https://redirect.github.com/getsentry/sentry-python/pull/5663/files/3f3ddda5fbb628555807052a8da9a39f73f95d95
sentry_sdk/integrations/anthropic.pyhttps://redirect.github.com/getsentry/sentry-python/pull/5663/files/3f3ddda5fbb628555807052a8da9a39f73f95d95#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
Mar 16, 2026https://redirect.github.com/getsentry/sentry-python/pull/5663#discussion_r2939127774
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
ericapisanihttps://redirect.github.com/ericapisani
Mar 16, 2026https://redirect.github.com/getsentry/sentry-python/pull/5663#discussion_r2939356827
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
https://redirect.github.com/ericapisani
ericapisanihttps://redirect.github.com/ericapisani
Mar 16, 2026https://redirect.github.com/getsentry/sentry-python/pull/5663#issuecomment-4068039458
#5678https://github.com/getsentry/sentry-python/pull/5678
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
https://redirect.github.com/ericapisani
ericapisanihttps://redirect.github.com/ericapisani
Mar 16, 2026https://redirect.github.com/getsentry/sentry-python/pull/5663#event-23609615924
https://redirect.github.com/ericapisani
ericapisanihttps://redirect.github.com/ericapisani
March 16, 2026 14:23https://redirect.github.com/getsentry/sentry-python/pull/5663#event-23609619920
https://github.co/hiddenchars
https://redirect.github.com/getsentry/sentry-python/pull/{{ revealButtonHref }}
Sign up for freehttps://redirect.github.com/join?source=comment-repo
Sign in to commenthttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5663
https://redirect.github.com/alexander-alderman-webb
alexander-alderman-webb https://redirect.github.com/alexander-alderman-webb
https://redirect.github.com/getsentry/sentry-python/pull/5663/files/3f3ddda5fbb628555807052a8da9a39f73f95d95
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
[Anthropic integration] Set gen_ai.response.finish_reason on span when available https://github.com/getsentry/sentry-python/issues/5658
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5663
https://redirect.github.com/ericapisani
https://redirect.github.com/alexander-alderman-webb
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.