GeezerVison is showing github.com — fix(anthropic): Stop unpacking output arrays by alexander-alderman-webb · Pull Request #8160 · getsentry/sentry-python
Conversation
The specific problem this fixes is text output that is JSON, as returned from
response = client.messages.create(
model="claude-opus-5-5",
max_tokens=16000,
output_config={"format": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {"summary": {"type": "string"}},
"required": ["summary"],
"additionalProperties": False,
},
}},
messages=[{"role": "user", "content": "Summarize Bill 119."}],
)
Closes AGT-3211
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Coverage Results 📊
✅ 136856 passed | ⏭️ 7456 skipped | Total: 144312 | Pass Rate: 94.83% | Execution Time: 450m 14s
All tests are passing successfully.
✅ Patch coverage is 100.00% (no changed executable lines found; target 80%).
Project statement coverage is 90.31% (down 0.01 percentage points from base (7ad4e1a) to head (00fafcc)).
Files with missing lines (1)
| File |
Coverage % |
Lines |
sentry_sdk/integrations/anthropic.py |
89.63% |
⚠️ 51 Missing and 42 partials |
Coverage diff
@@ Coverage Diff @@
## master #8160 +/-##
==========================================
- Coverage 90.32% 90.31% -0.01%
==========================================
Files 203 203 —
Tracked lines 26872 26872 —
Branches 10044 10044 —
==========================================
- Hits 24272 24268 -4
- Misses 2600 2604 +4
+ Partials 1520 1517 -3
Generated by Coverage Action
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 4, 2026
Reviewers
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.