TOOL WIKI · OBSERVABILITY
Arize Phoenix
Helps inspect traces and evaluate the behavior of AI applications.
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
Propagate a trace identifier through models, retrieval, and tools.
Capture meaningful timings and outcomes while excluding unnecessary content.
processTo 03 · Arize PhoenixInvestigating tool-use, retrieval, and generation behavior within a run. Instrumentation must cover the whole task path to support diagnosis.
resultTo 04 · InvestigationJoin parent-child spans and compare observed results with task expectations.
Turn verified failures into repeatable evaluation cases.
Use task success, error rates, latency, and cost to decide what to change.
Result or stopping point
Investigating tool-use, retrieval, and generation behavior within a run. Instrumentation must cover the whole task path to support diagnosis.
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.
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-otelTry a small integration
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
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
Explore the same layer
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.