Arize (tracing)
Arize is a platform for AI observability and evaluation. This page covers tracing Arize SDK calls with respan-instrumentation-arize.
Set up Respan
Create an account at platform.respan.ai and grab an API key .
Paste this into your coding agent:
Help me set up Respan tracing with the Arize integration.
Follow https://www.respan.ai/docs/integrations/arize.mdSetup
Install packages
pip install respan-ai respan-instrumentation-arize arizeSet environment variables
export RESPAN_API_KEY="YOUR_RESPAN_API_KEY"Initialize Respan and run
import os
from arize import ArizeClient
from respan import Respan
from respan_instrumentation_arize import ArizeInstrumentor
respan = Respan(
api_key=os.environ["RESPAN_API_KEY"],
app_name="arize-tracing",
instrumentations=[ArizeInstrumentor()],
)
client = ArizeClient(api_key="...")
print(client.datasets.list(space="respan-demo"))
respan.shutdown()View your trace
Open the Traces page to inspect Arize request spans with metadata, timing, and any captured request/response content.
Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | None | None | Uses RESPAN_API_KEY when not passed. |
base_url | str | None | None | Uses RESPAN_BASE_URL when not passed. |
app_name | str | None | None | Service name for exported spans. |
instrumentations | list | [] | Add ArizeInstrumentor() to activate Arize tracing. |