TOOL WIKI · OBSERVABILITY

Arize Phoenix

Helps inspect traces and evaluate the behavior of AI applications.

Download example files Code + setup + checks in a ZIP
Jump to a section 10 sections

EXAMPLE USE CASE

Verify a local trace collector receives a tool span

A developer needs evidence of what ran, which child operation failed, and how to turn that failure into a reproducible test.

Input
A local Phoenix collector and a labeled lookup-order span.
Expected output
A visible span in the asg-demo project.
  • Success check: The local Phoenix project receives one lookup-order span.
  • Try a failure: A successful function does not prove export succeeded; verify the collector/project separately.

Example scope: Actual collector/export smoke test; connect trusted application instrumentation for real task traces.

Official reference · Arize Phoenix

WHAT IT ISObservability and evaluation toolkit
WHERE IT FITSObservability
SEE HOW THE SYSTEM FITS TOGETHERSELECT A COMPONENT
inputprocessresultcheckoutputAgent runOne trace identityInstrumentationRedacted spans + eventsArize PhoenixObservability and evaluationtoolkitInvestigationFollow a failed taskRegression datasetConfirmed failuresOperational decisionFix, release, or alert
  1. Propagate a trace identifier through models, retrieval, and tools.

  2. Capture meaningful timings and outcomes while excluding unnecessary content.

  3. Investigating tool-use, retrieval, and generation behavior within a run. Instrumentation must cover the whole task path to support diagnosis.

  4. Join parent-child spans and compare observed results with task expectations.

  5. Turn verified failures into repeatable evaluation cases.

  6. Use task success, error rates, latency, and cost to decide what to change.

    Result or stopping point
Arize Phoenix

Investigating tool-use, retrieval, and generation behavior within a run. Instrumentation must cover the whole task path to support diagnosis.

Follow the arrows, then select a component to inspect its responsibility. On mobile, downward arrows connect the next step; bent arrows identify branches and return paths. Select a destination to jump to that component.

When to consider it

  • Investigating tool-use, retrieval, and generation behavior within a run.

A design decision to make

  • Instrumentation must cover the whole task path to support diagnosis.

Prerequisites and setup

  • Docker and Python 3.11+. Use the same project/collector endpoint in the exporter and Phoenix UI.
Shell
docker run --name asg-phoenix -d -p 127.0.0.1:6006:6006 arizephoenix/phoenix
python3 -m venv .venv
source .venv/bin/activate
pip install arize-phoenix-otel

Try a small integration

trace.py

Python · trace.py
from phoenix.otel import register
from opentelemetry import trace

provider = register(project_name="asg-demo",endpoint="http://localhost:6006/v1/traces",auto_instrument=False)
tracer = trace.get_tracer("asg-order-service")
with tracer.start_as_current_span("lookup-order") as span:
    span.set_attribute("order.id","A104")
    span.set_attribute("order.status","packed")
provider.force_flush()
print("Open the local Phoenix UI on port 6006")

Run and check the result

Shell
python trace.py
  • The local Phoenix project receives one lookup-order span.
  • This manual example makes no model call and keeps telemetry on the configured local collector.

Common failures

  • No trace: check the project/region, credentials, collector protocol and exporter flush before changing instrumentation.
  • Avoid double instrumentation that produces duplicate model spans or conflicting trace providers.

Production decisions

  • Redact keys, private prompts, personal data and sensitive tool results before exporting telemetry. Configure sampling and retention.
  • Connect request, agent, model and tool spans with parent/child trace context. A successful span is not a quality or authorization verdict.

Keep exploring

An evaluation gate for agent releasesThe real cost of an agent run

Explore the same layer

LangfuseLangSmithOpenTelemetryOpenInference

Compare candidates on your own workload. This entry describes a product’s role; it is not a claim that products in the category are interchangeable.