Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[bot] aws-sdk-bedrockruntime gem not instrumented (228K weekly downloads)

オープン
#152 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
aws, ruby

調査の方向性

まず lib/braintrust/contrib/ 配下の既存のインテグレーション、特に openai/ と anthropic/ を読み、その後 lib/braintrust/contrib.rb、Appraisals、braintrust.gemspec を確認します。AWS Bedrock Runtime インテグレーションが登録され、記載された入力、メタデータ、使用量、出力を伴う converse、streaming、invoke-model、async API をカバーしていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Summary

The aws-sdk-bedrockruntime gem is the official AWS SDK for invoking foundation models on Amazon Bedrock. With ~16.6M downloads, continuous releases (v1.75.0, April 2026), and a standardized converse/converse_stream API surface across all Bedrock-hosted models (Claude, Titan, Llama, Mistral, Cohere, etc.), it is not instrumented by this SDK.

The SDK instruments standalone provider clients for OpenAI (openai, ruby-openai) and Anthropic (anthropic), but has no instrumentation for the AWS Bedrock Runtime client, which is one of the most widely used ways to invoke generative AI models in Ruby production environments.

What is missing

No instrumentation exists for any aws-sdk-bedrockruntime execution surface. Key APIs that should be instrumented:

Converse API (unified chat)
  • client.converse(...) — Unified chat API with structured messages, system prompts, tool use (tool_config, tool_use, tool_result), inference config (temperature, max_tokens, top_p, stop_sequences), and guardrails. Returns structured ConverseResponse with usage metrics (input/output tokens), stop reason, and model-specific metadata. Works identically across all Bedrock-hosted models.
  • client.converse_stream(...) — Streaming variant with event-based output (content_block_delta, content_block_start, content_block_stop, message_start, message_stop, metadata). Includes token usage and latency metrics in the stream metadata event.
Invoke Model API (raw model invocation)
  • client.invoke_model(...) — Raw model invocation with provider-specific request body. Returns raw response body. Used for embeddings (e.g., Titan Embeddings, Cohere Embed) and other model-specific APIs.
  • client.invoke_model_with_response_stream(...) — Streaming variant of raw invocation.
Async Invoke API
  • client.start_async_invoke(...) — Asynchronous model invocation for long-running tasks.
  • client.get_async_invoke(...) — Check status of async invocation.
Expected instrumentation

The converse/converse_stream APIs are the primary instrumentation target due to their standardized request/response shapes:

Converse spans should capture:

  • Input: messages array, system prompts, tool configuration
  • Metadata: model_id, inference_config (temperature, max_tokens, top_p, stop_sequences), guardrail_config, additional_model_request_fields, provider, endpoint
  • Metrics: usage (input_tokens, output_tokens, total_tokens), latency metrics from stream metadata
  • Output: response messages, stop_reason, additional_model_response_fields

Invoke model spans (for embeddings) should capture:

  • Input: request body (model-specific)
  • Metadata: model_id, content_type, accept, provider
  • Output: response body metadata

Braintrust docs status

supported — Braintrust lists AWS Bedrock as a supported AI provider at https://www.braintrust.dev/docs. The Braintrust proxy supports Bedrock routing. However, there is no Ruby SDK auto-instrumentation for the aws-sdk-bedrockruntime gem — the SDK integrations page at https://www.braintrust.dev/docs/integrations/sdk-integrations does not list it as a supported Ruby library.

Upstream sources

Local repo files inspected

  • lib/braintrust/contrib/ — contains only openai/, ruby_openai/, ruby_llm/, anthropic/, and rails/ directories. No bedrock or aws directory.
  • lib/braintrust/contrib.rb — registers only 4 integrations: OpenAI, RubyOpenAI, RubyLLM, Anthropic. No Bedrock integration.
  • Appraisals — no appraisal scenarios for aws-sdk-bedrockruntime
  • braintrust.gemspec — no mention of aws or bedrock
  • Grep for bedrock across entire codebase returns zero matches
主要言語
Ruby
スター
9
フォーク
11
平均マージ
3日 43分
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

braintrustdata/braintrust-sdk-ruby のほかの issue

braintrustdata/braintrust-sdk-ruby の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。