Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[BOT ISSUE] gemini-ai gem not instrumented

Open
#149 0 comments 0 reactions 0 assignees View on GitHub

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

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

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 for gemini or google
  • Appraisals — no appraisal scenarios for gemini-ai
  • braintrust.gemspec — no mention of gemini
  • Grep for gemini across lib/braintrust/ returns zero matches
Dominant language
Ruby
Stars
9
Forks
10
Avg merge
22h 10m
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from braintrustdata/braintrust-sdk-ruby

All issues in braintrustdata/braintrust-sdk-ruby

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.