Google GenAI Tracing
Instrument LLM calls made using the Google Gen AI Python SDK
Launch Phoenix
Sign up for Phoenix:
Sign up for an Arize Phoenix account at https://app.phoenix.arize.com/login
Install packages:
Set your Phoenix endpoint and API Key:
Your Phoenix API key can be found on the Keys section of your dashboard.
Install
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.
Use the register function to connect your application to Phoenix.
Observe
Now that you have tracing setup, all GenAI SDK requests will be streamed to Phoenix for observability and evaluation.
Last updated
Was this helpful?