Skip to content

fix(anthropic): capture server-side tool usage metrics#192

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit intomainfrom
abhi-fix-171-anthropic-server-tool-metrics
Apr 3, 2026
Merged

fix(anthropic): capture server-side tool usage metrics#192
Abhijeet Prasad (AbhiPrasad) merged 1 commit intomainfrom
abhi-fix-171-anthropic-server-tool-metrics

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Flatten Anthropic usage.server_tool_use into Braintrust span metrics so server-side tool invocations are preserved for tracing and cost analysis.

Add regression tests using a red/green workflow to cover dict-backed span logging and object-backed usage extraction.

Fixes #171

@starfolkai
Copy link
Copy Markdown

starfolkai bot commented Apr 1, 2026

Drop into this review session: sfk devbox connect pr-192-braintrust-sdk-python-04c9 --attach

No serious bugs or issues found 🎉

Flatten Anthropic usage.server_tool_use into Braintrust span metrics so
server-side tool invocations are preserved for tracing and cost analysis.

Add regression tests using a red/green workflow to cover dict-backed span
logging and object-backed usage extraction.

Fixes #171
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-fix-171-anthropic-server-tool-metrics branch from e03dead to 3f32b6c Compare April 2, 2026 17:42
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit 5c35051 into main Apr 3, 2026
29 checks passed
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the abhi-fix-171-anthropic-server-tool-metrics branch April 3, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anthropic: server-side tool usage metrics (server_tool_use) not captured

2 participants