GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(anthropic): Record reasoning parts in nonstreaming output by alexander-alderman-webb · Pull Request #8192 · getsentry/sentry-python

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Nov 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Description

Based on the example in sentry-conventions for gen_ai.output.messages:

https://github.com/getsentry/sentry-conventions/blob/main/model/attributes/gen_ai/gen_ai__output__messages.json

Extend EXAMPLE_MESSAGE to return a thinking part when a supported library version is installed.
Stops re-using EXAMPLE_MESSAGE in streaming responses and creates two fixtures to reduce duplication among streaming responses in tests.

Issues

Closes PY-3055

Reminders

  • Please add tests to validate your changes, and lint your code using uv run ruff.
  • 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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/anthropic/reasoning branch 3 times, most recently from 04ebcdc to a5d6045 Compare November 5, 2026 08:03
sentry-warden[bot]
sentry-warden Bot reviewed Nov 5, 2026
View reviewed changes
Comment thread sentry_sdk/integrations/anthropic.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@linear-code

linear-code Bot commented Nov 5, 2026

Copy link
Copy Markdown

PY-3055

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexander-alderman-webb alexander-alderman-webb changed the title feat(anthropic): Record reasoning parts in output feat(anthropic): Record reasoning parts in nonstreaming output Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 137214 passed | ⏭️ 7456 skipped | Total: 144670 | Pass Rate: 94.85% | Execution Time: 461m 25s

📊 Comparison with Base Branch

Metric Change
Total Tests —
Passed Tests —
Failed Tests —
Skipped Tests —

✨ Test counts unchanged from base.

All tests are passing successfully.

✅ Patch coverage is 100.00% (8 of 8 changed executable lines covered; target 80%).
Project statement coverage is 90.33% (unchanged from base (dbc50bd) to head (d6f725b)).

Changed files with executable lines (1)
File Patch coverage Changed executable lines
sentry_sdk/integrations/anthropic.py 100.00% 8/8 covered; partial branches: 753
Coverage diff
@@            Coverage Diff             @@
##        master     #8192       +/-##
==========================================
  Coverage    90.33%    90.33%        —%
==========================================
  Files          203       203         —
  Tracked lines     26905     26910        +5
  Branches     10048     10050        +2
==========================================
+ Hits         24302     24307        +5
  Misses        2603      2603         —
  Partials      1516      1516         —

Generated by Coverage Action

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review November 5, 2026 08:20
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner November 5, 2026 08:20
@alexander-alderman-webb
feat(anthropic): Record reasoning parts in output
224885d
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/anthropic/reasoning branch from a5d6045 to 224885d Compare November 5, 2026 08:49
sentrivana
sentrivana approved these changes Nov 5, 2026
View reviewed changes
@alexander-alderman-webb
use square bracket access since it's output
d6f725b
@alexander-alderman-webb
alexander-alderman-webb added this pull request to stack #8194 November 5, 2026 09:56
@alexander-alderman-webb
alexander-alderman-webb removed this pull request from stack #8194 November 5, 2026 14:06
@alexander-alderman-webb
alexander-alderman-webb merged commit 7b1b1cb into master Nov 5, 2026
326 of 329 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@alexander-alderman-webb
alexander-alderman-webb deleted the webb/anthropic/reasoning branch November 5, 2026 14:06
This was referenced Nov 5, 2026
publish: getsentry/[email protected] getsentry/publish#10240
Closed
publish: getsentry/[email protected] getsentry/publish#10305
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sentry-warden sentry-warden[bot] sentry-warden[bot] left review comments
@sentrivana sentrivana sentrivana approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@alexander-alderman-webb @sentrivana
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.