Trace and evaluate LLM apps with Arize Phoenix

domain: arize.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install Phoenix and the OpenTelemetry instrumentation: pip install arize-phoenix opentelemetry-sdk arize-phoenix-evals
  2. Start the Phoenix server locally: python -m phoenix.server.main or use the hosted Arize Phoenix cloud; the UI is available at http://localhost:6006
  3. Instrument the LLM application with OpenTelemetry auto-instrumentation: from phoenix.otel import register; tracer_provider = register(project_name='my-project', endpoint='http://localhost:6006/v1/traces') — this captures spans automatically for supported frameworks like LangChain or LlamaIndex
  4. Run the application under load to collect traces; view spans in the Phoenix UI under the Traces tab
  5. Run evaluations against collected traces: from phoenix.evals import llm_classify; results = llm_classify(dataframe=traces_df, template=HALLUCINATION_PROMPT_TEMPLATE, model=eval_model, rails=['hallucinated', 'factual'])
  6. Attach evaluation scores back to spans: from phoenix.trace import SpanEvaluations; px.Client().log_evaluations(SpanEvaluations(eval_name='hallucination', dataframe=results))

Known gotchas

Related routes

Trace and evaluate an LLM application with Arize Phoenix using OpenTelemetry instrumentation
arize.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans