Skip to main content
Open Agent Spec (Agent Spec) is a portable language for defining agentic systems. It defines building blocks for standalone agents and structured agentic workflows as well as common ways of composing them into multi-agent systems. Agent Spec Tracing is an extension of Agent Spec that standardizes how agent and flow executions emit traces. Agent Spec Tracing enables:
  • Runtime adapters to emit consistent traces across different frameworks.
  • Consumers (observability backends, UIs, developer tooling) to ingest one standardized format regardless of the producer.
With Agent Spec, tracing instrumentation is implemented using the OpenTelemetry instrumentor known as AgentSpecInstrumentor. This callback handles the creation of spans and transmits them to the Phoenix collector.

Install

This installs the LangGraph adapter for Agent Spec, which allows developers to run Agent Spec workflows using LangGraph as a backend. You can find out the list of available adapters and how to install them in the Agent Spec installation instructions.

Setup

Use the register function to connect your application to Phoenix:

Create the Agent Spec agent

Run the agent using LangGraph

Observe

With tracing now configured, all calls to your Agent Spec agent will be streamed to Phoenix for enhanced observability and evaluation.

Resources