traceloop-sdk) is the one-line Traceloop.init() wrapper that activates those instrumentors — the two are the same integration, so this page covers both. Arize AX ingests their spans by converting them to OpenInference with the openinference-instrumentation-openllmetry span processor.
Prerequisites
- Python 3.9+
- An Arize AX account (sign up)
- An
OPENAI_API_KEYfrom the OpenAI Platform
Launch Arize AX
- Sign in to your Arize AX account.
- From Space Settings, copy your Space ID and API Key. You will set them as
ARIZE_SPACE_IDandARIZE_API_KEYbelow.
Install
Configure credentials
- OpenAI
Setup tracing
Prefer to wire up individual instrumentors instead of the Traceloop SDK? Install the specific OpenLLMetry instrumentor (e.g.
opentelemetry-instrumentation-openai), then instrument it against a tracer provider that carries the OpenInferenceSpanProcessor — the conversion step is the same.Run OpenLLMetry
Expected output
Verify in Arize AX
- Open your Arize AX space and select project
openllmetry-tracing-example. - You should see a new trace within ~30 seconds containing an
openai.chatspan withopeninference.span.kindset toLLM, the prompt and response, and token usage attached. - If no traces appear, confirm
ARIZE_SPACE_ID,ARIZE_API_KEY, andOPENAI_API_KEYare exported in the shell that ran the example.
Check from the skill, CLI, or SDK
Confirm spans are actually reaching your Arize AX project. Use whichever fits your workflow — the skill and CLI work for any framework; the SDK check is shown for each language.- Arize skill (agent)
- AX CLI
- SDK
Install the Arize Skills plugin and let your coding agent check for you:Then prompt your agent:
Use the arize-trace skill to export and analyze recent traces from my project. Confirm spans are arriving, and summarize any errors or latency issues.