Prerequisites
- Java 17 and Gradle
- A Gemini API key
Install
Add the ADK, OpenTelemetry, and OpenInference agent dependencies to your Gradle application:all classifier is the shaded Java agent jar. The harness attaches it to the Gradle run task.
Setup
Register OpenTelemetry before the first ADK call. ADK captures the global OpenTelemetry instance when its telemetry class loads.Run Google ADK
SetGOOGLE_API_KEY to authenticate requests. The example uses a tool call so Phoenix receives both agent and LLM spans.

