[bot] aws-sdk-bedrockruntime gem not instrumented (228K weekly downloads)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- aws, ruby
- Lĩnh vực
- ai, backend-api-design, observability
Hướng nghiên cứu
Bắt đầu bằng cách đọc các integration hiện có trong lib/braintrust/contrib/, đặc biệt là openai/ và anthropic/, sau đó kiểm tra lib/braintrust/contrib.rb, Appraisals và braintrust.gemspec. Công việc được xem là hoàn tất khi integration AWS Bedrock Runtime được đăng ký và bao phủ các API converse, streaming, invoke-model và async với các input, metadata, usage và output được liệt kê.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 structuredConverseResponsewith 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
- Official AWS SDK for Ruby: https://github.com/aws/aws-sdk-ruby
- RubyGems: https://rubygems.org/gems/aws-sdk-bedrockruntime (~16.6M downloads, v1.75.0, April 2026)
- AWS Bedrock Runtime API reference: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockRuntime/Client.html
- AWS Bedrock Converse API docs: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html
Local repo files inspected
lib/braintrust/contrib/— contains onlyopenai/,ruby_openai/,ruby_llm/,anthropic/, andrails/directories. Nobedrockorawsdirectory.lib/braintrust/contrib.rb— registers only 4 integrations: OpenAI, RubyOpenAI, RubyLLM, Anthropic. No Bedrock integration.Appraisals— no appraisal scenarios foraws-sdk-bedrockruntimebraintrust.gemspec— no mention ofawsorbedrock- Grep for
bedrockacross entire codebase returns zero matches
- Ngôn ngữ chính
- Ruby
- Star
- 9
- Fork
- 11
- Merge trung bình
- 3 ngày 43 phút
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của braintrustdata/braintrust-sdk-ruby
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
braintrustdata/braintrust-sdk-ruby#155 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BOT ISSUE] OpenAI Chat Completions missing reasoning model and web search metadata parametersĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
braintrustdata/braintrust-sdk-ruby#143 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
braintrustdata/braintrust-sdk-ruby#137 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ruby
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 62/100
braintrustdata/braintrust-sdk-ruby#229 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ruby
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
braintrustdata/braintrust-sdk-ruby#228 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của braintrustdata/braintrust-sdk-ruby
Issue tương tự
-
Concept round-trip: serialized "id" parses as #id, #uuid then lazily derives a different UUIDĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
glossarist/glossarist-ruby#247 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
voxpupuli/puppet-corosync#589 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 bug 🧑💼 conseillers
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
betagouv/conseillers-entreprises#4768 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`github-events` aborts the repository scan when a closed pull's API payload has a null `head`Có thể đã có người làm @renyamamoto2026-cmyk đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
zerocracy/judges-action#2823 ·
Maintainer thường phản hồi trong vòng 1 ngày