[bot] Instrument aws-sdk-bedrockagentcore (43K weekly downloads)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- aws, ruby
調査の方向性
まず lib/braintrust/contrib.rb と lib/braintrust/contrib/ 配下にある既存の統合ディレクトリを読み、その後、リンク先の API リファレンスで Aws::BedrockAgentCore::Client のエントリーポイントを確認してください。依存関係とテストのセットアップについては Appraisals と braintrust.gemspec を確認してください。AgentCore の実行サーフェス(invoke_agent_runtime と関連するツール呼び出しを含む)が SDK の tracing 統合で表現されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The aws-sdk-bedrockagentcore gem is the official, auto-generated AWS SDK client for Amazon Bedrock AgentCore — AWS's newer (2025-era) managed runtime for deploying and operating AI agents (and non-Bedrock, framework-agnostic agents, e.g. built with LangGraph/CrewAI/Strands) at scale. It exposes a distinct agent-run execution API (invoke_agent_runtime) separate from both raw model invocation and the classic Agents-for-Bedrock API, and is not instrumented by this SDK.
This is a separate gem/service from both aws-sdk-bedrockruntime (tracked in #152 — raw converse/invoke_model calls) and aws-sdk-bedrockagentruntime (classic Bedrock Agents invoke_agent, a distinct gem/API from this one). AgentCore Runtime is purpose-built to host and invoke arbitrary agent code (any framework, any model provider) as a managed session-based execution boundary — a clear, high-value agent-run tracing surface for a Ruby SDK whose stated purpose includes agent-execution observability.
What is missing
No instrumentation exists for any aws-sdk-bedrockagentcore execution surface. Key API:
client.invoke_agent_runtime(agent_runtime_arn:, runtime_session_id:, payload:, qualifier:, content_type:, accept:, mcp_session_id:, mcp_protocol_version:, ...)— Invokes a deployed AgentCore Runtime (the hosted agent) for one turn within a session, returning the agent's response payload (supports both buffered and streaming/SSE responses). This is the primary execution entry point for any agent hosted on AgentCore, regardless of the underlying agent framework or model provider — the direct agent-run analog to this SDK's existing model-call instrumentation.- Related generative/agent surfaces on the same client:
invoke_code_interpreter(executes code in an AgentCore-managed sandbox) andinvoke_browser(drives an AgentCore-managed browser tool) — both are tool-execution calls typically made during an agent run.
What a span should capture
- Input:
payload(the agent request body),runtime_session_id,agent_runtime_arn,qualifier(endpoint/version) - Metadata: provider (
aws-bedrock-agentcore),content_type,mcp_session_id/mcp_protocol_versionwhen present (AgentCore Runtime supports exposing agents as MCP servers) - Output: response payload,
content_type/acceptof the response, streaming status - Child spans:
invoke_code_interpreter/invoke_browsercalls made mid-run, mirroring how this SDK already models tool-call child spans for other integrations
Weekly downloads
43K (as of 2026-08-10; https://clickgems.clickhouse.com/dashboard/aws-sdk-bedrockagentcore) — ClickGems reports Last day / Last week / Last month / Total downloads sourced from RubyGems.org's public download dataset; RubyGems.org itself only exposes total and per-version download counts, not a weekly figure, so ClickGems was used as the directly-reported weekly stat.
Additional signal: current version 1.46.0 (per https://rubygems.org/api/v1/gems/aws-sdk-bedrockagentcore.json, checked 2026-08-10), part of the AWS SDK for Ruby's continuous auto-generated release train; total downloads 2,273,730 — notably high relative to the service's 2025 launch, indicating fast-growing adoption.
Braintrust docs status
not_found — Checked https://www.braintrust.dev/docs/integrations/sdk-integrations (Ruby-relevant tracing integrations list only OpenAI, Anthropic, Ruby LLM/ruby-openai; the separate "Agent frameworks" section lists OpenAI Agents SDK, Claude Agent SDK, LangGraph, CrewAI, AutoGen, Google ADK, Strands Agents SDK, Mastra, Pydantic AI, etc. — no Amazon Bedrock AgentCore entry) and https://www.braintrust.dev/docs generally. No mention of Bedrock AgentCore, BedrockAgentCore, or invoke_agent_runtime anywhere in Braintrust's documentation.
Upstream sources
- Official AWS SDK for Ruby (monorepo): https://github.com/aws/aws-sdk-ruby
- RubyGems: https://rubygems.org/gems/aws-sdk-bedrockagentcore
- API reference: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html
- Amazon Bedrock AgentCore product overview: https://aws.amazon.com/bedrock/agentcore/
InvokeAgentRuntimeoperation docs: https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/agentcore-invoke-agent.html
Braintrust docs sources checked
Local repo files inspected
lib/braintrust/contrib.rb— registers only 4 integrations: OpenAI, RubyOpenAI, RubyLLM, Anthropic. No AWS/Bedrock integration of any kind.lib/braintrust/contrib/— contains onlyopenai/,ruby_openai/,ruby_llm/,anthropic/, andrails/directories. Nobedrockorawsdirectory.Appraisals— no appraisal scenarios foraws-sdk-bedrockagentcoreor any AWS gembraintrust.gemspec— no mention ofawsorbedrock- Grep for
bedrock,Bedrock,AgentCore,invoke_agent_runtimeacrosslib/braintrust/returns zero matches - Confirmed issue #152 (
aws-sdk-bedrockruntime-not-instrumented) covers only the separateAws::BedrockRuntime::Client(converse/invoke_model); searched all 46 currently-open issues and found no existing issue mentioningBedrockAgentorAgentCore, so this is a distinct, non-duplicate gap from both #152 and the newly-filedaws-sdk-bedrockagentruntimegap.
- 主要言語
- Ruby
- スター
- 9
- フォーク
- 11
- 平均マージ
- 3日 43分
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
braintrustdata/braintrust-sdk-ruby のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
braintrustdata/braintrust-sdk-ruby#155 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
braintrustdata/braintrust-sdk-ruby#143 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
braintrustdata/braintrust-sdk-ruby#137 ·
メンテナーはふだん 1 日以内に返信
-
ruby
難易度 3/5 半日 初心者へのやさしさ 62/100
braintrustdata/braintrust-sdk-ruby#229 ·
メンテナーはふだん 1 日以内に返信
-
ruby
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
braintrustdata/braintrust-sdk-ruby#228 ·
メンテナーはふだん 1 日以内に返信
braintrustdata/braintrust-sdk-ruby の issue をすべて見る
似ている issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
NatLabRockies/OpenStudio-HPXML#2284 ·
-
aikido security:critical
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
dequelabs/axe-core-gems#532 ·
-
print_table with indent and truncate lets lines run up to indent characters past the width対応中かも @sebxt が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
phusion/passenger-docker#480 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 5 日以内に返信