Skip to content

feat: add google-genai instrumentation for Gemini and Vertex AI#13

Merged
t-santoshsahu merged 2 commits into
harness:mainfrom
shreyas70:CCM-google-genai-instrumentation
Jul 17, 2026
Merged

feat: add google-genai instrumentation for Gemini and Vertex AI#13
t-santoshsahu merged 2 commits into
harness:mainfrom
shreyas70:CCM-google-genai-instrumentation

Conversation

@shreyas70

Copy link
Copy Markdown
Contributor

Summary

  • instrument google.genai.models generate, streaming, and embedding APIs for sync and async clients
  • emit OTEL GenAI semantic-convention attributes with Gemini Developer API and Vertex AI provider detection
  • support content capture, policy evaluation, uninstrumentation, packaging extras, and usage documentation

Test plan

  • /Users/shreyas/code/wd/aicm-agent-sdk/otel-python-sdk/.venv/bin/pip install -e ".[dev]" -q
  • /Users/shreyas/code/wd/aicm-agent-sdk/otel-python-sdk/.venv/bin/python -m pytest test/instrumentation/google_genai/ -v
  • Result: 12 passed

Instruments google.genai.models generate_content/embed_content (sync+async+streaming)
with OTEL GenAI semconv, policy evaluation, and gcp.gemini/gcp.vertex_ai provider detection.

Co-authored-by: Cursor <cursoragent@cursor.com>
@CLAassistant

CLAassistant commented Jul 15, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ shreyas-n-harness
❌ t-santoshsahu
You have signed the CLA already but the status is still pending? Let us recheck it.

@t-santoshsahu
t-santoshsahu merged commit cd21ae8 into harness:main Jul 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants