Google GenAI Tracing
Instrument LLM calls made using the Google Gen AI Python SDK and view traces in Arize.
Launch Arize
To get started, sign up for a free Arize account and get your Space ID and API Key.
Install
API Key Setup
Set the GEMINI_API_KEY
environment variable. To use the GenAI SDK with Vertex AI instead of the Developer API, refer to Google's guide on setting the required environment variables.
Setup
Use the register
function to connect your application to Arize and instrument the Google GenAI client.
Observe
Now that you have tracing setup, all GenAI SDK requests will be streamed to Arize for observability and evaluation.
Last updated
Was this helpful?