Skip to content

[cherry-pick] Fix missing reasoningEffort telemetry for Claude models#309646

Merged
bhavyaus merged 1 commit intorelease/1.116from
cherry-pick/309639
Apr 13, 2026
Merged

[cherry-pick] Fix missing reasoningEffort telemetry for Claude models#309646
bhavyaus merged 1 commit intorelease/1.116from
cherry-pick/309639

Conversation

@vs-code-engineering
Copy link
Copy Markdown
Contributor

Cherry-pick of #309639 from main.

Cherry-pick of #308325.

Problem

The reasoningEffort telemetry property on response.success and response.error events was only reading from requestBody.reasoning?.effort, which is set by the Responses API path (OpenAI models).

Claude models use the Messages API path, which sets effort via requestBody.output_config?.effort instead. As a result, reasoning effort was silently missing from telemetry for all Claude model requests.

Fix

Added a fallback: requestBody.reasoning?.effort ?? requestBody.output_config?.effort on both response.success and response.error telemetry events so the effort level is captured regardless of which API path is used.

Impact

  • response.success — now logs reasoningEffort for Claude models
  • response.error — now logs reasoningEffort for Claude models
  • No behavior change for OpenAI models (the reasoning.effort path is checked first)

@vs-code-engineering vs-code-engineering bot added the cherry-pick-artifact Auto-generated cherry-pick PR label Apr 13, 2026
@bhavyaus bhavyaus enabled auto-merge (squash) April 13, 2026 22:17
@bhavyaus bhavyaus merged commit 19bf430 into release/1.116 Apr 13, 2026
26 checks passed
@bhavyaus bhavyaus deleted the cherry-pick/309639 branch April 13, 2026 22:51
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-artifact Auto-generated cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant