Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BOT ISSUE] llm.rb gem not instrumented

未关闭
#140 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
ruby
领域
observability

调研方向

先从 lib/braintrust/contrib.rb 以及现有的 OpenAI、RubyOpenAI、RubyLLM 和 Anthropic 集成开始,然后检查 llm.rb 的 chat、completion、tool-calling、embedding 和 agent API。检查 Appraisals 和 braintrust.gemspec 中的集成设置;完成意味着 llm.rb 的执行面具有专用的 instrumentation,并覆盖所列的元数据和 provider 行为。

由索引模型根据 Issue 内容生成。

描述

Summary

The llm.rb gem (RubyGems: llm.rb) is an actively maintained Ruby toolkit for building LLM-powered systems that is not instrumented by this SDK. It is a distinct library from ruby_llm (crmne/ruby_llm), which is already instrumented.

llm.rb has 69K+ downloads, reached v4.11.0 (April 2026), and provides execution-oriented API surfaces across 8 providers.

What is missing

No instrumentation exists for any llm.rb execution surface. Key APIs that should be instrumented:

Chat / Completions
  • LLM::Context#chat — stateful chat with conversation history
  • Streaming responses via structured callbacks
  • Stateless completions
Tool Calling
  • Automatic tool orchestration across providers
  • Concurrent tool execution (threads, fibers, async)
  • Tool execution during streaming
Embeddings
  • LLM::Provider#embed — vector embeddings generation
Agents
  • Reusable, preconfigured assistants with tool auto-execution
Supported Providers

OpenAI, Anthropic, Google, DeepSeek, xAI, zAI, Ollama, LlamaCpp

Braintrust docs status

not_found — No mention of llm.rb or llmrb anywhere in Braintrust documentation at https://www.braintrust.dev/docs. The Braintrust SDK integrations page at https://www.braintrust.dev/docs/integrations/sdk-integrations lists "Ruby LLM" (which refers to the ruby_llm gem, a different library).

Upstream sources

Local repo files inspected

  • lib/braintrust/contrib.rb (lines 195–205) — registers only 4 integrations: OpenAI, RubyOpenAI, RubyLLM, Anthropic. No llm.rb integration.
  • lib/braintrust/contrib/ — no directory or files for llm_rb or llmrb
  • Appraisals — no appraisal scenarios for llm.rb
  • braintrust.gemspec — no mention of llm.rb

Notes

llm.rb has built-in OpenTelemetry support, so users can get basic tracing via Braintrust's OTEL integration. However, dedicated instrumentation would capture richer provider-specific metadata (model parameters, token usage breakdowns, tool execution details, cost tracking) consistent with how the SDK instruments ruby_llm, openai, and anthropic today.

主要语言
Ruby
星标
9
派生
10
平均合并
22 小时 10 分钟
30 天内合并 PR
6

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

braintrustdata/braintrust-sdk-ruby 的其他 Issue

查看 braintrustdata/braintrust-sdk-ruby 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。