Arize (tracing)

Arize is a platform for AI observability and evaluation. This page covers tracing Arize SDK calls with respan-instrumentation-arize.

Create an account at platform.respan.ai and grab an API key.

Run npx @respan/cli setup to set up with your coding agent.

See Arize gateway setup to route this integration through the Respan gateway.

Setup

1

Install packages

$pip install respan-ai respan-instrumentation-arize arize
2

Set environment variables

$export RESPAN_API_KEY="YOUR_RESPAN_API_KEY"
3

Initialize Respan and run

1import os
2
3from arize import ArizeClient
4from respan import Respan
5from respan_instrumentation_arize import ArizeInstrumentor
6
7respan = Respan(
8 api_key=os.environ["RESPAN_API_KEY"],
9 app_name="arize-tracing",
10 instrumentations=[ArizeInstrumentor()],
11)
12
13client = ArizeClient(api_key="...")
14print(client.datasets.list(space="respan-demo"))
15
16respan.flush()
17respan.shutdown()
4

View your trace

Open the Traces page to inspect Arize request spans with metadata, timing, and any captured request/response content.

Configuration

ParameterTypeDefaultDescription
api_keystr | NoneNoneUses RESPAN_API_KEY when not passed.
base_urlstr | NoneNoneUses RESPAN_BASE_URL when not passed.
app_namestr | NoneNoneService name for exported spans.
instrumentationslist[]Add ArizeInstrumentor() to activate Arize tracing.