Skip to content

feat(observability): log turn_tool_call_batch as structured metric - #625

Merged
Aaronontheweb merged 1 commit into
devfrom
claude-wt-log-changes
Apr 13, 2026
Merged

feat(observability): log turn_tool_call_batch as structured metric#625
Aaronontheweb merged 1 commit into
devfrom
claude-wt-log-changes

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Collaborator

Summary

  • Adds TurnLog().Info("turn_tool_call_batch count={Count} tools={Tools}", ...) in HandleToolCallResponse immediately before the per-tool-call dispatch loop
  • Emits count and comma-separated tool names as structured fields on every assistant response that produces tool calls
  • Consistent with existing TurnLog() patterns in the file (same logging adapter, same structured key style)

Closes #623

Test plan

  • dotnet build passes with 0 warnings
  • dotnet slopwatch analyze passes with 0 new violations
  • After deployment: verify grep turn_tool_call_batch in daemon logs emits one line per tool-invocation round-trip with count and tools fields populated

Adds a TurnLog().Info call at the point where tool calls are dispatched
in HandleToolCallResponse, emitting count and tool names as a single
structured log line per assistant response.

This enables one-liner grep+awk queries over daemon logs to measure the
distribution of tool_calls_per_response — a prerequisite for validating
whether vLLM + qwen3_coder parser or provider switches (Anthropic, OpenAI)
unlock batched tool calls.

Closes #623
@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) April 13, 2026 01:16
@Aaronontheweb
Aaronontheweb merged commit f5662d8 into dev Apr 13, 2026
4 checks passed
@Aaronontheweb
Aaronontheweb deleted the claude-wt-log-changes branch April 13, 2026 01:20
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.

feat(observability): log tool_calls_per_assistant_response as structured metric

1 participant