Repository navigation
feat(server-utils): Record Bedrock prompts, system instructions, and tool definitions - #26249
Conversation
…d tool definitions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit faabebf. Configure here.
size-limit report 📦Compared: 502792e (PR test merge using develop at 3e2f711) Against: 3e2f711 (develop) · base run #65851 ✅ Baseline matches: this diff contains only this PR's changes.
|
|
One or more gzipped bundles increased by more than 500 bytes. If this increase is intentional, add the Accept Bundlesize Increase label to this PR to rerun and accept the check. |
Optional E2E testsSome optional checks were not successful. They do not block the merge. 4 not successful, 54 successful. See the run.
Successful checks
|
…b/bedrock-gen-ai-inputs
…b/bedrock-gen-ai-inputs
…inputs # Conflicts: # packages/server-utils/src/integrations/aws-sdk/services/bedrock-runtime.ts
| * Claude `InvokeModel` bodies are Anthropic Messages API requests, so they are recorded like the Anthropic | ||
| * integration records them. | ||
| */ | ||
| export function getClaudeInputAttributes(body: Record<string, unknown>): Record<string, unknown> { |
There was a problem hiding this comment.
Does this one handle inline media? So we don't attach raw base64 to gen_ai.input.messages?
There was a problem hiding this comment.
No, it doesn't, which is in line with the anthropic integration. A while ago we decided to walk back on truncation and stripping images out. This has since changed, but we need to align this on all integrations.
Webby and I are working on aligning integrations more in the future, but we are at the stage of writing clearer specs.

What
Bedrock
Converse,ConverseStream,InvokeModel, andInvokeModelWithResponseStreamspans now record the input messages, system instructions, and tool definitions. Claude request bodies are recorded like the Anthropic integration records them, anddataCollection.genAI.inputsturns this off.Extracted from #26118.
Why
Other AI integrations already record their inputs, so Bedrock spans showed less in the AI views.