Google GenAI (Gemini) auto-instrumentation is on the roadmap and not yet
available. Check back for updates.
In the meantime, you can trace Google GenAI calls manually using
trace_workflow and trace_function decorators:
from valiqor.trace import trace_workflow, trace_function
import google.generativeai as genai
genai.configure(api_key="your-gemini-key")
model = genai.GenerativeModel("gemini-pro")
@trace_function("gemini-call")
def ask_gemini(prompt):
response = model.generate_content(prompt)
return response.text
with trace_workflow("gemini-app"):
result = ask_gemini("Explain quantum computing")
print(result)
See the Tracing Guide for more on manual
instrumentation.