tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Generative AI > AI Observability > Tracing Multi-Agent Systems with Arize Phoenix

Tracing Multi-Agent Systems with Arize Phoenix

Author: Venkata Sudhakar

As ShopMax India scales its AI operations, it often runs multiple agents together - one for inventory, one for pricing, one for customer queries. Without visibility into how these agents interact, debugging failures or optimising performance is guesswork. Arize Phoenix is an open-source AI observability platform that captures OpenInference traces from multi-agent systems, giving you a complete picture of every agent call, tool invocation, and LLM response in a single timeline.

Arize Phoenix works by instrumenting your LLM calls with the openinference-instrumentation-openai or openinference-instrumentation-langchain libraries. Each agent span is recorded with inputs, outputs, latency, token counts, and parent-child relationships. Phoenix runs locally as a Docker container or in the cloud, and its UI shows trace waterfalls that reveal where time is spent and where errors occur.

The example below shows a two-agent ShopMax India workflow - a Pricing Agent and an Inventory Agent - both traced with Phoenix. We use the openai SDK with OpenInference auto-instrumentation so every LLM call is captured automatically.


It gives the following output,

Checking product: SM-TV-55-4K
Price: Recommended price for SM-TV-55-4K is Rs 42,999 based on market trends.
Stock: SM-TV-55-4K has 23 units available in Mumbai warehouse.
Traces available at: http://localhost:6006

In production, set the PHOENIX_COLLECTOR_ENDPOINT environment variable to point to your hosted Phoenix instance instead of launching locally. Use project names to group traces by environment - shopmax-prod vs shopmax-staging. Phoenix also supports custom attributes; add metadata like user_id or order_id to spans using opentelemetry-api so you can filter traces to a specific customer session.


 
  


  
bl  br