Install & Compatibility
Where this runs
tested against v0.13.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.940 runs
installs and imports cleanly · install 0.0s · import 0.000s · 51.5MB
glibcpy 3.10–3.940 runs
installs and imports cleanly · install 4.9s · import 0.000s · 49MB
49MB installed
● package 49MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
configure_opentelemetry_for_arize_phoenix
✓ from arize_otel.tracing import configure_opentelemetry_for_arize_phoenix
✗ from arize_otel.tracing import configure_opentelemetry_for_arize_phoenix
This quickstart initializes OpenTelemetry with Arize and Phoenix exporters, then demonstrates both manual and automatic instrumentation. Ensure `ARIZE_API_KEY` and `ARIZE_SPACE_KEY` environment variables are set for Arize and Phoenix is running locally if using the default host. For automatic instrumentation, relevant `opentelemetry-instrumentation-*` packages must be installed separately (e.g., `pip install opentelemetry-instrumentation-requests`).
import os
from opentelemetry import trace
from arize_otel.tracing.config import configure_opentelemetry_for_arize_phoenix
from arize_otel.tracing.instrumentation import ArizeInstrumentor
# Configure OpenTelemetry to send traces to Arize and Phoenix
# Ensure ARIZE_API_KEY and ARIZE_SPACE_KEY environment variables are set.
configure_opentelemetry_for_arize_phoenix(
arize_api_key=os.environ.get("ARIZE_API_KEY", ""),
arize_space_key=os.environ.get("ARIZE_SPACE_KEY", ""),
phoenix_host="http://localhost:6006" # Optional: defaults to "http://localhost:6006"
)
# Manually instrument an application using OpenTelemetry Tracer
tracer = trace.get_tracer("my-arize-app")
with tracer.start_as_current_span("my-manual-span"):
print("Performing some traced operation...")
# Automatically instrument common libraries (e.g., requests, flask, django)
# Ensure you have installed the respective opentelemetry-instrumentation- packages.
ArizeInstrumentor().instrument()
# Example using a common library (e.g., requests) which will be automatically traced
try:
import requests
response = requests.get("https://www.example.com")
print(f"Requests response status: {response.status_code}")
except ImportError:
print("Install 'opentelemetry-instrumentation-requests' to trace requests.")
print("Tracing configured and example operation completed.")
Upgrade
Version history
0.13.0latest on PyPI · released May 27, 2026
Audit
Dependencies
opentelemetry-apirequiredCore OpenTelemetry API for tracing.
opentelemetry-sdkrequiredCore OpenTelemetry SDK for trace processing.
opentelemetry-exporter-otlprequiredFor exporting traces via OTLP (OpenTelemetry Protocol).
opentelemetry-sdk-extension-awsoptionalProvides AWS-specific OpenTelemetry resource detection and extensions.
arize-phoenixoptionalIntegration with Arize Phoenix for data visualization and evaluation features. Requires '[data,evals]' extras for full functionality.