Registry / observability / arize-otel

arize-otel

JSON →
library0.13.0pypypiunverified

Arize-OTel is a helper package designed to streamline OpenTelemetry (OTel) setup for sending traces to Arize AI and Arize Phoenix. It simplifies instrumenting Python applications by providing pre-configured exporters and an instrumentor for common libraries, enabling quick observability integration. The current version is 0.12.0, and the project maintains a regular release cadence for new features, bug fixes, and dependency updates.

pip install arize-otel
INSTALL
IMPORT
SIG · ARIZE-OTEL
A
arize-otel
observabilitypythonv0.13.0
Install
4.9s avg
Import
Disk
49MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.940 runs
installs and imports cleanly · install 0.0s · import 0.000s · 51.5MB
glibc
py 3.103.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.")
Debug
Known issues
breakingThe primary configuration function `configure_opentelemetry_for_arize` was renamed to `configure_opentelemetry_for_arize_phoenix` in `arize-otel` version 0.10.0.
fix
Update your import statement and function call to `from arize_otel.tracing.config import configure_opentelemetry_for_arize_phoenix`.
affects: >=0.10.0
gotchaTo utilize all features of Arize Phoenix (e.g., data visualization, evaluations), you must install `arize-otel` with the `data` and `evals` extras.
fix
Install using `pip install "arize-otel[data,evals]"`.
affects: All versions
gotchaAutomatic instrumentation of third-party libraries (like `requests`, `flask`, `django`, `fastapi`) requires their respective `opentelemetry-instrumentation-*` packages to be installed alongside `arize-otel` and `ArizeInstrumentor().instrument()` to be called.
fix
For example, to instrument `requests`, run `pip install opentelemetry-instrumentation-requests` and ensure `ArizeInstrumentor().instrument()` is part of your setup.
affects: All versions
gotchaArize API and Space Keys (`ARIZE_API_KEY`, `ARIZE_SPACE_KEY`) are crucial for sending traces to Arize. Ensure these are provided either via environment variables or explicitly passed to `configure_opentelemetry_for_arize_phoenix`.
fix
Set `export ARIZE_API_KEY='your_api_key'` and `export ARIZE_SPACE_KEY='your_space_key'` in your environment, or pass them as arguments: `configure_opentelemetry_for_arize_phoenix(arize_api_key='...', arize_space_key='...')`.
affects: All versions
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.
Agent activity
46 hits · last 30 days
node
42
Amazon
1
OpenAI (training)
1
Resources
arize-otel — pip install arize-otel · libregistry