Skip to main content
PyPI Monitor Google ADK (Agent Development Kit) applications with Fiddler’s purpose-built SDK. Get deep visibility into agent reasoning, LLM interactions, and tool execution for ADK-based agent applications. Platform Compatibility: Works with ADK agents using either Google Gemini API keys or Vertex AI authentication.

What You’ll Need

  • Fiddler account (cloud or on-premises)
  • Google ADK agent application
  • Python 3.11 or higher
  • Fiddler API key
  • Google Gemini API key or Vertex AI credentials

Quick Start

What Gets Monitored

ADK Agent Operations

  • Agent Invocations (invoke_agent) - Full agent execution with timing and session tracking
  • LLM Calls (call_llm) - LLM request/response capture with input, output, system instructions, and tool definitions
  • Tool Execution (execute_tool) - Tool call arguments and return values
  • Model Inference (generate_content) - Token usage, model name, and finish reasons

Captured Attributes

  • LLM Input/Output - User prompt text, model response text, system instructions
  • Tool I/O - Tool call arguments (JSON) and tool response payloads
  • Token Usage - Input tokens, output tokens, reasoning tokens
  • Agent Identity - Agent name, agent ID, session/conversation ID
  • Finish Reasons - LLM stop reason per generation

Configuration Options

Programmatic Configuration

Google Authentication

ADK supports two authentication methods for accessing Gemini models:

Content Capture

Whether ADK puts LLM request/response payloads on span attributes depends on its telemetry schema, and google-adk 2.13.0 changed both the default schema and the default answer:
On schema v2, Fiddler extracts tool input/output but not LLM message content. ADK writes v2 LLM content to the OpenTelemetry semantic-convention keys gen_ai.input.messages and gen_ai.output.messages. Fiddler stores both verbatim and resolves them to the input and output concepts, so the Input and Output columns show the raw message JSON rather than extracted text, and input/output evaluators score that JSON.Enabling content capture on v2 therefore sends and stores LLM payloads as well as tool content — relevant if you are enabling it only for tool content. If you need LLM request/response content extracted into plain text, stay on schema v1 — see Keeping LLM Content.

On google-adk 2.13.0 and Later

Tool content is omitted unless you opt in. To capture it:
This variable is not a boolean. It accepts NO_CONTENT, EVENT_ONLY, SPAN_ONLY, and SPAN_AND_EVENT, and defaults to NO_CONTENT.Setting it to true resolves to EVENT_ONLY, which attaches content to log records instead of spans. Fiddler ingests spans, so content still will not appear. Use SPAN_ONLY or SPAN_AND_EVENT.

On google-adk Earlier Than 2.13.0

LLM and tool content are both captured by default, and Fiddler extracts both. To disable capture (for example, for PII protection):

Keeping LLM Content

On google-adk 2.13.0 and later, pin the telemetry schema to v1. This restores the v1 attribute keys that Fiddler extracts LLM content from, along with v1’s default-on capture:
ADK supports this opt-in until at least 2027-03-31, after which the knob and the v1 schema are removed. Pinning to v1 makes extracted plain text available, as gen_ai.llm.input.user and gen_ai.llm.output. It does not change what the Input and Output columns display: those still show the retained raw request/response blob on both schemas — see Missing Content on Spans. Point evaluators at the extracted keys directly when you need plain-text scoring.

Example Applications

Document Processing Agent with Tools

View complete example —>

Viewing Your Data

Navigate to Fiddler UI to analyze Google ADK agent performance:
  1. Explorer - View full span trees: agent > LLM > tool hierarchy
  2. Session Analysis - Multi-turn conversation flows grouped by session
  3. LLM Performance - Input/output content, token usage, latency
  4. Tool Metrics - Tool call arguments, responses, and execution time
  5. Cost Tracking - Token usage per agent session

Span Types

How It Works

Google ADK emits OpenTelemetry spans natively through a tracer named gcp.vertex.agent. The fiddler-adk SDK:
  1. Sets up an isolated tracing pipeline via FiddlerClient (provider, processor, OTLP exporter) and promotes it to the global tracer provider so ADK’s tracer resolves to it.
  2. Propagates session identity by backfilling gen_ai.conversation.id from child spans onto the root invocation span, ensuring all spans in a turn share the same session ID.
  3. Delegates content extraction to the Fiddler backend, which parses ADK’s JSON span attributes (gcp.vertex.agent.llm_request, etc.) into human-readable fields.
The SDK operates in standalone mode — it does not interact with customer-configured tracers or providers.

Troubleshooting

Traces Not Appearing in Fiddler

Verify credentials:
Check instrumentation is active:
Ensure traces are flushed before exit:

Missing Content on Spans

If tool input/output is missing, check content capture. On google-adk 2.13.0 and later, ADK omits it unless you set OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT to SPAN_ONLY or SPAN_AND_EVENT — see Content Capture. Setting it to true is not sufficient, because that routes content to log records rather than spans. If LLM input/output shows raw message JSON, that is expected, and it is expected on both schemas. On schema v2, Fiddler stores the gen_ai.input.messages/gen_ai.output.messages keys that ADK emits and resolves them to the input/output concepts, but does not yet extract them into plain text. On schema v1, Fiddler does extract plain text, into gen_ai.llm.input.user and gen_ai.llm.output. The Input and Output columns still show raw JSON, because the v1 request and response blobs are retained under gcp.vertex.agent.llm_request/llm_response, those keys also resolve to input/output, and the column picks the alphabetically first key that has a value — gcp. sorts ahead of gen_ai.. Pinning to v1 therefore changes which raw blob is displayed, not whether one is. Content capture does not change this on either schema. To score plain text today, map the evaluator explicitly to gen_ai.llm.input.user and gen_ai.llm.output on schema v1, rather than to the input/output concepts. Having the columns prefer extracted text over the raw blob is a known gap and is being tracked. If LLM input/output is missing entirely on schema v1, or tool content is present but unextracted on either schema, extraction is handled by the Fiddler backend — ensure your Fiddler instance has the Google ADK backend mapper deployed.

Orphan Root Spans

If invocation root spans appear disconnected from their children, update to the latest fiddler-adk version. The ADKSpanProcessor backfills gen_ai.conversation.id to root spans automatically.