Problem Using Phoenix Arize for ADK tracing

I can’t get Phoenix (Cloud version or Docker) to show traces when I set up to trace at app level with a kick off script that then opens web adk server for chat interface,

The setup uses

auto_instrument=True

which should automatically instrument all Google ADK SDK calls, but it seems like the ADK agents in the subprocess aren’t picking up this global instrumentation. A work around was to initialize phoenix for each agent but clearly a pain and have to do singleton pattern to avoid overlapping conflicts.
I followed the official docs in ADK and Phoenix. Is this simply that can kick to phoenix as an app level trace when running with Adk Web interface (albeit with a kickoff script, not just “adk web”?

Any ideas or commiseration for those trying to trace in ADK with Phoenix is appreciated, thx.

1 Like

Hello,

Welcome to the Forum,

Could you please help me understand your issue better by providing some more details?
I could not understand if your issue was related to Gemini API or Google AI Studio.

Hello, for me setting the batch=True, solved all of the issues.

             tracer_provider = register(
                project_name=os.getenv("PHOENIX_PROJECT_NAME"),
                batch=True, 
                auto_instrument=True 
            )

Hello @Mykyta_Terentiev

Are you struggling with Gemini API, we can support you with issue related to Gemini API or Google AI Studio?