AI: This is phoenix.otel setup (not arize.otel for Arize AX). If user says “Arize OTEL” without specifying, ask which: phoenix.otel or arize.otel.
The Phoenix OTEL SDK provides a lightweight wrapper around OpenTelemetry with sensible defaults for Phoenix.Install
- Python
- TypeScript
Configure
Set environment variables to connect to your Phoenix instance:Register
Callregister() to initialize tracing. The SDK automatically reads your environment variables.
- Python
- TypeScript
Configuration options
Configuration options
| Parameter | Description |
|---|---|
project_name | Project name in Phoenix (or PHOENIX_PROJECT_NAME env var) |
auto_instrument | Automatically instrument all supported libraries |
batch | Process spans in batch (default: True, recommended for production) |
endpoint | Custom collector endpoint URL |
protocol | Transport protocol: "grpc" or "http/protobuf" |
headers | Headers to send with each span payload |
Instrument
Add instrumentation to capture traces from your LLM calls:- Python
- TypeScript
With See Integrations for all available packages, or use Tracing Helpers for manual instrumentation.
auto_instrument=True, Phoenix automatically discovers and activates all OpenInference instrumentor packages installed in your Python environment—no additional code required.Advanced Configuration
For more control over tracing behavior, see the SDK reference documentation:Python arize-phoenix-otel
Batch processing, custom endpoints, gRPC/HTTP transport, sampling, and OTel primitives
TypeScript @arizeai/phoenix-otel
Diagnostic logging, custom headers, and full API reference

