What You’ll Learn
In this guide, you’ll learn how to:- Set up a Fiddler application for monitoring Google ADK agents
- Install and configure the Fiddler ADK SDK
- Instrument ADK agents with automatic telemetry
- Run a multi-turn agent with tool calls
- Verify monitoring is working correctly
Prerequisites
Before you begin, ensure you have:- Fiddler Account: An active account with access to create applications
-
Python 3.10+: Verify your version:
-
Fiddler ADK SDK: Install the SDK:
-
Google Gemini Access: Either a Gemini API key or Vertex AI credentials:
If you prefer using a notebook, download it directly from GitHub or open it in Google Colab to get started.
Create a Fiddler Application
First, create a dedicated application in Fiddler to receive your agent traces.
- Sign in to your Fiddler instance
- Navigate to GenAI Applications in the left sidebar
- Click Add Application
- Enter the application details:
- Name:
google-adk-monitoring - Project: Select a project from the dropdown or press Enter to create a new one
- Name:
- Click Create and copy the Application UUID (you’ll need this for configuration)
Configure Credentials
Set up the required credentials. You need your Fiddler API key (from Settings) and the Application UUID from Step 1.Instructions for generating your API key can be found in the Access guide.
Tip: Save these in a
.env file and load with python-dotenv for easy reuse.Set Up Instrumentation
Add two lines to your application to enable Fiddler monitoring:That’s it. All ADK agents created after this point are automatically traced.
Verify Monitoring in Fiddler
After running your agent:
- Navigate to your Fiddler instance
- Open the GenAI Applications page
- Click on your application (
google-adk-monitoring) - Open the Trace Explorer
- Agent span (
invoke_agent) - the agent execution - LLM span (
call_llm) - the Gemini API call with input/output - Tool span (
execute_tool get_weather) - the tool call with arguments and response
Troubleshooting
No Traces Appearing
- Verify
client.force_flush()is called before the process exits - Check for 401 errors in logs (wrong API key)
- Ensure the Application UUID matches an existing GenAI Application
Gemini API Errors
- Verify
GOOGLE_API_KEYor Vertex AI credentials are set - For Vertex AI, ensure
gcloud auth application-default loginhas been run
Configuration Options
Supported Models
Any Gemini model supported by Google ADK:gemini-2.5-flash,gemini-2.5-progemini-2.0-flashgemini-1.5-flash,gemini-1.5-pro
Supported ADK Versions
google-adk >= 1.34.2(both 1.x and 2.x lines)opentelemetry-api >= 1.37.0
Next Steps
- Google ADK Integration Guide - Full integration documentation
- Fiddler Evals SDK - Evaluate agent quality
- Google ADK SDK Reference - API documentation