[BOT ISSUE] gemini-ai gem not instrumented
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- ruby
- Domain
- ai, backend-api-design
Research direction
Start by reading the existing integration.rb files under lib/braintrust/contrib/* and the integration registrations, then inspect Appraisals and braintrust.gemspec for dependency and scenario conventions. Implementing this issue is complete when gemini-ai has instrumentation for the listed generation, streaming, embedding, tool-calling, structured-output, and provider surfaces, with the integration registered and covered by appraisal scenarios.
Written by the indexing model from the issue text.
Description
Summary
The gemini-ai gem (~360K downloads, v4.3.0, July 2025) is the most established standalone Google Gemini Ruby client and is not instrumented by this SDK. The SDK instruments standalone clients for OpenAI (openai, ruby-openai) and Anthropic (anthropic), but has no standalone Google Gemini client instrumentation.
What is missing
No instrumentation exists for any gemini-ai execution surface. Key APIs that should be instrumented:
Chat / Content Generation
client.generate_content(params)— non-streaming content generation (text, multimodal)client.stream_generate_content(params)— streaming content generation with chunk callbacks
Embeddings
client.embed_content(params)— vector embeddings generation
Tool / Function Calling
- Function declarations and automatic function calling during content generation
Structured Outputs
- JSON format mode for structured generation via response schema
Provider Support
- Google AI Studio (API key auth)
- Google Vertex AI (service account and application default credentials)
Braintrust docs status
not_found — No mention of gemini-ai anywhere in Braintrust documentation at https://www.braintrust.dev/docs. The SDK integrations page does not list any standalone Google Gemini Ruby client.
Upstream sources
- GitHub: https://github.com/gbaptista/gemini-ai
- RubyGems: https://rubygems.org/gems/gemini-ai (~360K downloads, v4.3.0, July 2025)
- Google Gemini API docs: https://ai.google.dev/docs
Local repo files inspected
lib/braintrust/contrib/*/integration.rb— only 4 integrations registered: OpenAI, RubyOpenAI, RubyLLM, Anthropic. No Gemini integration.lib/braintrust/contrib/— no directory or files forgeminiorgoogleAppraisals— no appraisal scenarios forgemini-aibraintrust.gemspec— no mention ofgemini- Grep for
geminiacrosslib/braintrust/returns zero matches
- Dominant language
- Ruby
- Stars
- 9
- Forks
- 10
- Avg merge
- 22h 10m
- Merged PRs (30d)
- 6
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from braintrustdata/braintrust-sdk-ruby
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
ruby
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
ruby
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in braintrustdata/braintrust-sdk-ruby
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
forem/forem#23933 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
rails/mission_control-jobs#347 ·
-
PROJECT: ILR/DRS
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
thewca/worldcubeassociation.org#15914 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 7 days
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
benbalter/site-inspector#127 ·
Maintainers usually reply within 1 day