Skip to content

[bot] Instrument aws-sdk-bedrockagentcore (4,221 weekly downloads) #97

Description

@braintrust-bot

Summary

This repo (braintrust-sdk-rust) has no instrumentation at all for Amazon Bedrock AgentCore, AWS's managed agent-execution runtime, despite it being an official, actively-released AWS SDK crate with a meaningful agent-execution API surface (session-based agent invocation, streaming agent output, memory records, code-interpreter and browser tool sessions).

What's missing

  • No usage/response extractor for AgentCore's data-plane operations (e.g. InvokeAgentRuntime, StartCodeInterpreterSession/InvokeCodeInterpreter, StartBrowserSession, session/memory APIs).
  • No streaming support in BraintrustStream (src/stream.rs) for AgentCore's agent-run streaming output — the module only understands an OpenAI-shaped chunk format (StreamChunk, OutputChoice) plus (per issue history) a partial/buggy attempt at Bedrock's model-invocation ConverseStream shape. AgentCore's runtime-invocation/session event shapes are unrelated to both and are not handled anywhere.
  • No mention of "Bedrock" or "AgentCore" anywhere in the codebase (verified via repo-wide case-insensitive search across src/, tests/, examples/, README.md).

Note this is distinct from the already-tracked aws-sdk-bedrockagentruntime ("Agents for Amazon Bedrock", the older agent feature) and the base aws-sdk-bedrockruntime Converse/InvokeModel gap already covered by the existing "BraintrustStream cannot aggregate AWS Bedrock ConverseStream events" issue. Bedrock AgentCore is a separate, newer (GA 2025) product/crate with its own execution surface: a full managed agent runtime with sessions, persistent memory, and built-in code-interpreter/browser tools — squarely an "agent-run" execution surface per this repo's stated instrumentation scope.

Weekly downloads

Weekly downloads: 4,221 (as of 2026-08-31; https://crates.io/api/v1/crates/aws-sdk-bedrockagentcore/downloads)

Computed by summing version_downloads + meta.extra_downloads for the 7 calendar days 2026-08-25 through 2026-08-31 from the crates.io downloads API. Crate metadata (total downloads 58,948, current version 1.65.0, actively released — 66 published versions) via https://crates.io/api/v1/crates/aws-sdk-bedrockagentcore. This is comparable to or above other AWS crates this repo already tracks as instrumentation gaps (e.g. aws-sdk-transcribestreaming at 4,014/week, aws-sdk-polly at 3,227/week).

Upstream sources

Braintrust docs check

Checked the current Braintrust AWS Bedrock integration docs: https://www.braintrust.dev/docs/integrations/ai-providers/bedrock

Result: not_found. That page exclusively documents tracing for the base Bedrock Runtime model-invocation API (Converse, ConverseStream, InvokeModel, InvokeModelWithResponseStream). It does not mention Bedrock AgentCore, agent sessions, memory, code-interpreter, or browser-tool execution anywhere. No other page under /docs/integrations/ documents a dedicated Braintrust wrapper for Bedrock AgentCore for any language SDK (the only AgentCore + Braintrust material found is an unofficial third-party blog post showing generic OpenTelemetry pass-through for the Python bedrock-agentcore-sdk, which is not an official Braintrust-documented integration and is unrelated to this Rust crate).

Local repo files inspected

  • Cargo.toml (dependency list — no AWS SDK crates of any kind)
  • src/extractors.rs (extract_openai_usage, extract_anthropic_usage — no Bedrock/AgentCore handling)
  • src/stream.rs (BraintrustStream, StreamChunk, StreamToolCallAccumulator, OutputChoice — OpenAI-shaped only)
  • src/types.rs (shared Usage struct — OpenAI/Anthropic field aliases only)
  • src/lib.rs (public re-exports)
  • tests/span_lifecycle.rs (usage-extractor tests — OpenAI/Anthropic only)
  • README.md (documented extractor feature list — OpenAI/Anthropic only)
  • Repo-wide case-insensitive grep for Bedrock/AgentCore — zero matches

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions