Repository navigation
docs(traceai): Gemini Go tracing (TH-8273) - #970
Merged
Merged
Conversation
New page src/pages/docs/integrations/traceai/go/gemini.mdx for the traceAI Go module github.com/future-agi/traceAI/go/genai (traceAI PR #262): google.golang.org/genai traced through ClientConfig.HTTPClient, Gemini Developer API backend, tested on genai v1.75.0 and v1.71.0. States what is and isn't captured, the traceAI FI_HIDE_* privacy switches, errors/retries/continuation, Vertex and the retired generative-ai-go module as not supported, and troubleshooting. Runnable assets in examples/traceai/gemini-go/ (main.go, run_e2e.sh, README, tests that keep the page snippets in step with main.go). navigation.ts is not touched (nav PR adds the page). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ple (TH-8273) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 16, 2026
…e (TH-8273) The page goes live only after traceAI#262 is merged and go/genai is tagged, so the "until the PR is merged, fetch the PR commit" note would be stale on the live page. Same for the example README. Install stays go get .../go/genai@latest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
The guide described pre-release behavior: embeddings passing through untraced, input tokens from promptTokenCount only, zero counts never written, and privacy switches without FI_HIDE_ERROR_DETAILS or the name-only declaration filtering. go/genai v0.1.1 traces EmbedContent, adds toolUsePromptTokenCount, keeps reported zeros and ships both privacy changes, so the page now documents that release and pins it. It also removes internal test narration (tested-surface table row, dated version check, privacy-test sentence) and the QA runner and its marker instructions from the example folder, registers the page in the integration catalog so it is discoverable, and replaces the Python page test that CI never ran with a node contract test in test:integrations. Co-Authored-By: Claude Code <noreply@anthropic.com>
nik13
marked this pull request as ready for review
November 6, 2026 05:40
The released v0.1.1 SetAttributes helper does not redact arbitrary aggregate values under text-only hiding. Remove prompt, answer and tool payload attributes from custom spans, document that boundary, and exercise the actual example and released transport in GitHub CI across both supported SDK versions. Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the Gemini Go guide for the released
github.com/future-agi/traceAI/go/genaiv0.1.1 module. Covers the standard OTLP/HTTP exporter, sessions, streaming, tool calls and embeddings. Linear: TH-8273 (parent TH-8103).FI_HIDE_ERROR_DETAILSbehavior.SetAttributes, and that console output is separate from telemetry.gemini-goin the shared integration catalog under Model providers with the Google logo.Validation
GitHub CI exercises the example and released transport with synthetic Gemini responses on Google Gen AI SDK v1.71.0 and v1.75.0. Coverage includes streamed/non-streamed calls, individual and combined text switches, full input/output hiding, metadata and parent-child preservation, error privacy, and the documented
SetAttributesboundary. Standard catalog, link, build and browser checks remain enabled.Requires Go 1.26 or later; the integration uses OpenTelemetry Go v1.47.0.
🤖 Generated with Claude Code