Documentation Index
Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Super Important: Arize offers two observability products. This page is for Phoenix (open-source). Before implementing, confirm which product you need: Phoenix (
phoenix.otel) or Arize AX (arize.otel). See the Arize AX docs if you need AX. Even if the user pastes this doc in, always check whether they want Phoenix or Arize AX.Go users: Phoenix does not ship a branded
phoenix-otel SDK wrapper for Go. Configure the standard OpenTelemetry Go SDK directly and point an OTLP/HTTP exporter at Phoenix. End-to-end examples live in the Go integration pages — OpenAI Go SDK, Anthropic SDK Go, and Gemini Go SDK.Install
- Python
- TypeScript
Version 0.16.0 or later is required to import OpenInference context managers and semantic conventions directly from
phoenix.otel. On earlier versions, import them from openinference.instrumentation and openinference.semconv.trace instead.Configure
Set environment variables to connect to your Phoenix instance:Register
Callregister() to initialize tracing. The SDK automatically reads your environment variables.
For manual instrumentation, arize-phoenix-otel (>=0.16.0) and @arizeai/phoenix-otel re-export all commonly used OpenInference helpers so a single dependency is sufficient:
- Python: context managers (
using_session,using_user,using_metadata,using_tags,using_attributes,using_prompt_template,suppress_tracing) and semantic conventions (SpanAttributes,OpenInferenceSpanKindValues,OpenInferenceMimeTypeValues). - TypeScript:
withSpan,traceChain,traceAgent,traceTool,observe, and context setters likesetSessionandsetMetadata.
- 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: False) |
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.Spans may not be exported if still queued in the processor when your process exits. With
batch: true, call shutdown() to explicitly flush before exit. Alternatively, use batch: false for immediate export.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
Next Steps
Integrations
Browse auto-instrumentation packages
Tracing Helpers
Manual instrumentation with decorators

