Skip to content

feat: support adk java#2531

Open
lmy654 wants to merge 5 commits intoArize-ai:mainfrom
lmy654:feat/support-adk-java
Open

feat: support adk java#2531
lmy654 wants to merge 5 commits intoArize-ai:mainfrom
lmy654:feat/support-adk-java

Conversation

@lmy654
Copy link

@lmy654 lmy654 commented Dec 14, 2025

support adk-java instrumentation


Note

Adds a new ADK Java instrumentation module with a ByteBuddy agent that instruments ADK Telemetry and Runner to enrich OpenTelemetry spans with OpenInference attributes.

  • Instrumentation (new module instrumentation/openinference-instrumentation-adk-java):
    • Java Agent (TelemetryAgent): Instruments com.google.adk.Telemetry (traceFlowable, traceToolCall, traceCallLlm) and com.google.adk.runner.Runner#runAsync.
    • Advices:
      • TelemetryAdvice/TelemetryVoidAdvice: Set span status/kind and attributes for tools and LLM calls (provider/model, inputs/outputs, messages/parts, tool schemas/calls, usage tokens), and wrap Flowable to capture final events.
      • RunnerAdvice: Capture session/user IDs, metadata, agent name, and input/output details; mark spans as CHAIN.
  • Build/Config:
    • New Gradle project with Shadow JAR (Premain-Class), ByteBuddy/OTel/OpenInference deps; added to settings.gradle.
    • CHANGELOG.md initialized for version 0.1.0.

Written by Cursor Bugbot for commit 0f7da49. This will update automatically on new commits. Configure here.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Dec 14, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 14, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@lmy654
Copy link
Author

lmy654 commented Dec 14, 2025

I have read the CLA Document and I hereby sign the CLA

@lmy654
Copy link
Author

lmy654 commented Dec 14, 2025

recheck

@lmy654
Copy link
Author

lmy654 commented Dec 15, 2025

recheck

@lmy654
Copy link
Author

lmy654 commented Dec 15, 2025

I have read the CLA Document and I hereby sign the CLA

@lmy654
Copy link
Author

lmy654 commented Dec 15, 2025

recheck

@sohutv-basic-0
Copy link

I have read the CLA Document and I hereby sign the CLA

@sohutv-basic-0
Copy link

recheck

github-actions bot added a commit that referenced this pull request Dec 15, 2025
@lmy654 lmy654 changed the title Feat/support adk java feat: support adk java Dec 17, 2025
@nate-mar nate-mar self-requested a review January 6, 2026 19:00
@nate-mar
Copy link
Contributor

nate-mar commented Jan 6, 2026

Thanks for this! Will take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants