feat(attributes): Add gen_ai.request.reasoning_effort attribute#334
Draft
cleptric wants to merge 3 commits into
Draft
feat(attributes): Add gen_ai.request.reasoning_effort attribute#334cleptric wants to merge 3 commits into
cleptric wants to merge 3 commits into
Conversation
Adds a new attribute for tracking the reasoning effort parameter sent to reasoning-capable models. Supported values vary by provider (OpenAI, Anthropic, Google Gemini), so the brief documents per-provider levels rather than a fixed enum. Not in OTel. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
🤖 This preview updates automatically when you update the PR. |
alexander-alderman-webb
approved these changes
Apr 23, 2026
| // Path: model/attributes/gen_ai/gen_ai__request__reasoning_effort.json | ||
|
|
||
| /** | ||
| * Constrains the effort on reasoning for reasoning models. Supported values vary by provider: OpenAI supports `minimal`, `low`, `medium`, `high` (and `none`, `xhigh` on newer models); Anthropic supports `low`, `medium`, `high`; Google Gemini 3 supports `low`, `high`. `gen_ai.request.reasoning_effort` |
Contributor
There was a problem hiding this comment.
Not sure how useful the per-provider enumeration is since it's model dependent and the current list is not completely accurate, e.g., Gemini has minimal and medium as well.
https://ai.google.dev/gemini-api/docs/thinking
Suggested change
| * Constrains the effort on reasoning for reasoning models. Supported values vary by provider: OpenAI supports `minimal`, `low`, `medium`, `high` (and `none`, `xhigh` on newer models); Anthropic supports `low`, `medium`, `high`; Google Gemini 3 supports `low`, `high`. `gen_ai.request.reasoning_effort` | |
| * Selects how much reasoning, or internal thinking, the model performs before responding. `gen_ai.request.reasoning_effort` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Just making this as a draft for now.
Adds
gen_ai.request.reasoning_effortfor tracking the reasoning effort parameter on reasoning-capable models.Supported values vary by provider:
minimal,low,medium,high(plusnoneon GPT-5.2 andxhighon GPT-5.3-Codex / 5.1-Codex-Max)low,medium,high(Claude 4.6+effortparameter)low,high(thinking_level)Not in OpenTelemetry semantic conventions.