Repository navigation
fix(bedrock): record Converse model request fields in invocation parameters - #3984
Merged
caroger merged 8 commits intoOct 19, 2026
Conversation
|
Removed the manual CHANGELOG entry. This repository uses release-please to auto-generate CHANGELOGs from conventional commit PR titles when merged. The manual 'Unreleased' section would have caused conflicts or been overwritten. The PR title already follows conventional commit format ( |
…es it) Co-authored-by: Roger Hu <rogerhu1989@gmail.com>
satyadevai
force-pushed
the
fix/bedrock-converse-invocation-parameters-3944
branch
from
October 14, 2026 14:28
24471ee to
f7ceb46
Compare
satyadevai
approved these changes
Oct 15, 2026
satyadevai
force-pushed
the
fix/bedrock-converse-invocation-parameters-3944
branch
from
October 15, 2026 16:03
03e2359 to
b5efc04
Compare
Merged
This was referenced Oct 20, 2026
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.
Fixes #3944
The Bedrock Converse instrumentation did not record
additionalModelRequestFields(for exampletop_korthinking) inllm.invocation_parameters. It also copied the responsestopReasonintollm.invocation_parametersasstop_reason, which is a response value and not a request parameter.Changes:
llm.invocation_parametersnow mergesinferenceConfigandadditionalModelRequestFields.stopReasonis no longer written intollm.invocation_parameters. It is still recorded asllm.finish_reason.Compatibility note: this changes the nested JSON keys in
llm.invocation_parameters. Spans with only a responsestopReasonand no request parameters no longer carry that attribute, andstop_reasonis no longer a key inside it. Anything that readstop_reasonfrom there should usellm.finish_reason.