René's URL Explorer Experiment


Title: ref(anthropic): Skip accumulation logic for unexpected types in streamed response by alexander-alderman-webb · Pull Request #5564 · getsentry/sentry-python · GitHub

Open Graph Title: ref(anthropic): Skip accumulation logic for unexpected types in streamed response by alexander-alderman-webb · Pull Request #5564 · getsentry/sentry-python

X Title: ref(anthropic): Skip accumulation logic for unexpected types in streamed response by alexander-alderman-webb · Pull Request #5564 · getsentry/sentry-python

Description: Description Prepare for adding patches for .stream(), which iterate over MessageStreamEvent. MessageStreamEvent is a superset of RawMessageStreamEvent returned in the iterator from create(stream=True), but only RawMessageStreamEvent are required to collect the information required on AI Client Spans. Issues Reminders Please add tests to validate your changes, and lint your code using tox -e linters. Add GH Issue ID & Linear ID (if applicable) PR title should use conventional commit style (feat:, fix:, ref:, meta:) For external contributors: CONTRIBUTING.md, Sentry SDK development docs, Discord community

Open Graph Description: Description Prepare for adding patches for .stream(), which iterate over MessageStreamEvent. MessageStreamEvent is a superset of RawMessageStreamEvent returned in the iterator from create(stream=T...

X Description: Description Prepare for adding patches for .stream(), which iterate over MessageStreamEvent. MessageStreamEvent is a superset of RawMessageStreamEvent returned in the iterator from create(stream=T...

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

X: @github

direct link

Domain: 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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dc3b0177-0757-77c9-40d7-af56065167ce
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id81E0:91CF4:74A905:9C8CCF:6B00D81D
html-safe-nonceddde64407bc4c58b76ea4e0ee10ba878c693076a2da53e9b69112a2b125bcad5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUUwOjkxQ0Y0Ojc0QTkwNTo5QzhDQ0Y6NkIwMEQ4MUQiLCJ2aXNpdG9yX2lkIjoiNzYzMjI0NzY4MjM5NTg1NDg3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1d32738324751bbb143af528b37ce09a5af78dfc21c2eb6db473eb0217959f66
hovercard-subject-tagpull_request:3335001303
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-python/pull/5564/files
twitter:imagehttps://avatars.githubusercontent.com/u/224035503?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224035503?s=400&v=4
og:image:altDescription Prepare for adding patches for .stream(), which iterate over MessageStreamEvent. MessageStreamEvent is a superset of RawMessageStreamEvent returned in the iterator from create(stream=T...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
turbo-cache-controlno-preview
diff-viewunified
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-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/5564/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5564%2Ffiles
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5564%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/5564/files
Reloadhttps://github.com/getsentry/sentry-python/pull/5564/files
Reloadhttps://github.com/getsentry/sentry-python/pull/5564/files
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
masterhttps://github.com/getsentry/sentry-python/tree/master
webb/anthropic/only-raw-message-stream-eventshttps://github.com/getsentry/sentry-python/tree/webb/anthropic/only-raw-message-stream-events
Conversation 8 https://github.com/getsentry/sentry-python/pull/5564
Commits 28 https://github.com/getsentry/sentry-python/pull/5564/commits
Checks 158 https://github.com/getsentry/sentry-python/pull/5564/checks
Files changed https://github.com/getsentry/sentry-python/pull/5564/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5564/files
ref(anthropic): Skip accumulation logic for unexpected types in streamed response https://github.com/getsentry/sentry-python/pull/5564/files#top
Show all changes 28 commits https://github.com/getsentry/sentry-python/pull/5564/files
4cf7e5a ref(anthropic): Factor out streamed result handling alexander-alderman-webb Feb 27, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/4cf7e5ae1a9e6bb709ee0af266125daff6a1b73c
61a4cd0 ref(anthropic): Skip accumulation logic for unexpected types in strea… alexander-alderman-webb Feb 27, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/61a4cd0c1e3a24f5a1a421f369d7d7d242edc7ef
6cdab16 . alexander-alderman-webb Feb 27, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/6cdab1673211cae9482d3ba93b50ca76dabb8865
db5dbb9 . alexander-alderman-webb Feb 27, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/db5dbb921f70944c46d65dbfe870fad4a8cae565
091506c Merge branch 'webb/anthropic/separate-output-handling' into webb/anth… alexander-alderman-webb Feb 27, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/091506c27de113ced64117f0ae7e3c9f98ab828d
d47b64d . alexander-alderman-webb Feb 27, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/d47b64dc29e09f59ca63de2d2423e2359502c64b
384351f remove duplicate import alexander-alderman-webb Feb 27, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/384351f3ca05dc2981210d0f9d9f83dfb0c63303
55d5c27 . alexander-alderman-webb Feb 27, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/55d5c27aa54a9f3285e86489ca49e88a63dc8890
fd84837 simplify alexander-alderman-webb Feb 27, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/fd84837d4e335e85924aedb7108364aa66df3446
53859e4 . alexander-alderman-webb Mar 10, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/53859e4762f4bec7e6d411738398740d59a2137e
e2d6d78 remove unused import alexander-alderman-webb Mar 10, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/e2d6d78204d619e9ae6f96215a072e421abb5d14
a01f7c1 add docstring alexander-alderman-webb Mar 10, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/a01f7c1698aeed44085ef2f6b73c2c9546b8649d
7837439 add return alexander-alderman-webb Mar 10, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/7837439b46c89287d1d82380e5696211dc7d68d5
0e06f49 remove return statement alexander-alderman-webb Mar 10, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/0e06f49dfc34fdbd0ce5e37b6f92af680730b277
c396a32 merge alexander-alderman-webb Mar 10, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/c396a3229405ad0af9e04e78b6127bbd81f1902b
d4022c5 Merge branch 'master' into webb/anthropic/only-raw-message-stream-events alexander-alderman-webb Mar 10, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/d4022c5bffa7ce9d6fb0d6c4e941c2183fd508a2
4e3d1db Merge branch 'master' into webb/anthropic/separate-output-handling alexander-alderman-webb Mar 10, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/4e3d1db799625804bf214438200ea056bee8076d
531c6a8 Merge branch 'webb/anthropic/separate-output-handling' into webb/anth… alexander-alderman-webb Mar 10, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/531c6a8b8a945c4e3276b554a536ab967a720305
917b8d4 . alexander-alderman-webb Mar 11, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/917b8d48752c26b5deab09f83b6e61ca0fe82007
aa6e58a . alexander-alderman-webb Mar 11, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/aa6e58ae700af254e9f42740333d08436367ebe1
bd00e4e . alexander-alderman-webb Mar 11, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/bd00e4eeb2ac5ca25569f87f0b52f508589e3330
a6da66e merge alexander-alderman-webb Mar 11, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/a6da66e669810c6345f4b70b176c653c6b30796c
c988c26 fix type alexander-alderman-webb Mar 11, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/c988c263421cd4c6008251c2921237d835d8baa3
3009ba6 Merge branch 'webb/anthropic/separate-output-handling' into webb/anth… alexander-alderman-webb Mar 11, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/3009ba6d7be473a0ff22925e18e45b8d1752cbc5
ab5e3bb Merge branch 'master' into webb/anthropic/separate-output-handling alexander-alderman-webb Mar 12, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/ab5e3bb0da8e64c30575ef6ed56e4bcb9a093c9c
571db4e Merge branch 'webb/anthropic/separate-output-handling' into webb/anth… alexander-alderman-webb Mar 12, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/571db4e0384e1a099c2c23e049d5f350686a8d56
2d66d56 merge master alexander-alderman-webb Mar 13, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/2d66d56357b75d6ac19c491fa73a4f4595af2b00
ad4b3c2 add docstring explaining type alises alexander-alderman-webb Mar 13, 2026 https://github.com/getsentry/sentry-python/pull/5564/commits/ad4b3c2eb1a3f490c4a6c38b0fd237ee7e9c4c87
Clear filters https://github.com/getsentry/sentry-python/pull/5564/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5564/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5564/files
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/integrations/anthropic.pyhttps://github.com/getsentry/sentry-python/pull/5564/files#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05
View file https://github.com/getsentry/sentry-python/blob/ad4b3c2eb1a3f490c4a6c38b0fd237ee7e9c4c87/sentry_sdk/integrations/anthropic.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/5564/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/5564/files#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5564/files
https://github.com/getsentry/sentry-python/pull/5564/files#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05
https://github.com/getsentry/sentry-python/pull/5564/files#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5564/files
https://github.com/getsentry/sentry-python/pull/5564/files#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05
https://github.com/getsentry/sentry-python/pull/5564/files#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05
https://github.com/getsentry/sentry-python/pull/5564/files#diff-2fe73f39bab33821a7af1fccb0fd22b943b931b2cbf8d13aead2784b3cd21e05
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5564/files
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.