[bot] activeagent gem (Rails AI agent framework) not instrumented
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Área
- backend, observability
Línea de trabajo
Comienza con lib/braintrust/contrib.rb y las integraciones existentes de contrib/openai, ruby_openai, ruby_llm, anthropic y rails; después revisa las API generate_now, generate_later, streaming y action de ActiveAgent. Revisa Appraisals y braintrust.gemspec para conocer los patrones de dependencias y de appraisal. Se considera completado cuando la ejecución de ActiveAgent y el dispatch de acciones están instrumentados con los spans, metadatos, salidas y el uso agregado indicados, cuando esté disponible.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
The activeagent gem (v1.0.2, 84K+ downloads, released June 10, 2026) is a Rails-native AI agent framework not instrumented by this SDK. Positioned as "the only agent-oriented AI framework designed for Rails, where Agents are Controllers," it provides a clear agent execution surface — generate_now, generate_later, streaming via ActionCable, and action-as-tool calling — across OpenAI, Anthropic, Ollama, OpenRouter, and RubyLLM providers.
While the underlying LLM calls may be captured through existing openai, anthropic, or ruby_llm instrumentation, the activeagent agent-run layer (agent action dispatch, multi-turn orchestration, context management, callbacks) has no dedicated instrumentation.
What is missing
No instrumentation exists for any activeagent execution surface. Key APIs that should be instrumented:
Agent Execution
Agent.prompt(message: "...").generate_now— Synchronous agent execution. Invokes the agent action, drives the model through one or more turns, and returns the final response. This is the primary blocking execution path.Agent.prompt(message: "...").generate_later— Asynchronous agent execution via ActiveJob. Queues agent execution as a background job.
Streaming
- Streaming via ActionCable —
ActiveAgent::GenerationChannelstreams agent response chunks in real time to a WebSocket channel. Each streaming turn produces intermediate content events before a final completion event.
Tool / Action Calling
- Agent actions as tools — Public instance methods defined in an agent class are automatically exposed to the LLM as callable tools. The framework dispatches tool calls by invoking the corresponding action method. Each action dispatch should produce a child span within the agent run.
Context / Transcript Management
with(...)— Sets context variables available to the agent during execution.- The framework maintains a message transcript across multi-turn interactions that should be captured in the root agent span.
Expected instrumentation
Agent run spans should capture:
- Input: initial prompt / user message, agent class name, action (if explicit)
- Metadata: provider (
openai,anthropic,ruby_llm, etc.), model, agent configuration (generate_withsetting), temperature/other inference params - Output: final generated response after all turns complete
- Metrics: aggregated token usage across all turns (if available from provider)
Tool/action dispatch child spans should capture:
- Action method name and arguments
- Return value (tool result)
Braintrust docs status
not_found — activeagent is not listed anywhere in Braintrust's integrations directory at https://www.braintrust.dev/docs/integrations. The SDK integrations page at https://www.braintrust.dev/docs/integrations/sdk-integrations lists only ruby-llm as a Ruby-specific integration. No mention of Rails agent frameworks.
Upstream sources
- GitHub: https://github.com/activeagents/activeagent
- RubyGems: https://rubygems.org/gems/activeagent (v1.0.2, June 10, 2026, 84K+ downloads)
- Documentation / project site: https://www.activeagents.ai/
Local repo files inspected
lib/braintrust/contrib.rb— registers only 4 integrations: OpenAI, RubyOpenAI, RubyLLM, Anthropic. No ActiveAgent integration.lib/braintrust/contrib/— contains onlyopenai/,ruby_openai/,ruby_llm/,anthropic/, andrails/directories. Noactive_agent/directory.Appraisals— no appraisal scenarios foractiveagentbraintrust.gemspec— no mention ofactiveagent- Grep for
activeagent,active_agent,ActiveAgent,GenerationChannel,generate_nowacrosslib/braintrust/returns zero matches
- Lenguaje dominante
- Ruby
- Estrellas
- 9
- Forks
- 11
- Merge medio
- 2 d 3 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de braintrustdata/braintrust-sdk-ruby
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
[BOT ISSUE] OpenAI Chat Completions missing reasoning model and web search metadata parametersAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
ruby
Dificultad 3/5 Medio día Aptitud para principiantes 62/100
-
ruby
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
Todos los issues de braintrustdata/braintrust-sdk-ruby
Issues similares
-
Liens externes cassésAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 66/100
betagouv/conseillers-entreprises#4770 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
seek4science/seek#2762 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
rubyevents/rubyevents#2277 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
Los mantenedores suelen responder en 2 días