Quickstart

The easiest way to run Phoenix is locally in your own computer. To launch Phoenix, use the following steps.

Install

pip install arize-phoenix

Launch Phoenix

Launching phoenix can be done in many ways depending on your use-case.

Launch your local Phoenix instance using:

python3 -m phoenix.server.main serve

For details on customizing a local terminal deployment, see Terminal Setup.

Connect your App

To collect traces from your application, you must configure an OpenTelemetry TracerProvider to send traces to Phoenix. The register utility from the phoenix.otel module streamlines this process.

If arize-phoenix is not installed in your python environment, you can use arize-phoenix-otel to quickly connect to your phoenix instance.

pip install arize-phoenix-otel

Connect your application to your instance using:

from phoenix.otel import register

# defaults to endpoint="http://localhost:4317"
register(
  project_name="my-llm-app", # Default is 'default'
  endpoint="http://localhost:4317",  # Sends traces using gRPC
)  

You do not have to use phoenix.otel to connect to your phoenix instance, you can use OpenTelemetry itself to initialize your OTEL connection. SeeUsing OTEL Python Directly

See Setup Tracing: Python for more details on configuration and setup

Next Steps

Last updated