Skip to main content
OpenLLMetry is Traceloop’s open-source observability package that auto-instruments 20+ LLM providers and frameworks with OpenTelemetry. The Traceloop SDK (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

Launch Arize AX

  1. Sign in to your Arize AX account.
  2. From Space Settings, copy your Space ID and API Key. You will set them as ARIZE_SPACE_ID and ARIZE_API_KEY below.

Install

Configure credentials

OpenLLMetry auto-instruments any provider it supports the same way — swap the OpenAI packages and client below for another supported provider and the wiring is unchanged.

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

  1. Open your Arize AX space and select project openllmetry-tracing-example.
  2. You should see a new trace within ~30 seconds containing an openai.chat span with openinference.span.kind set to LLM, the prompt and response, and token usage attached.
  3. If no traces appear, confirm ARIZE_SPACE_ID, ARIZE_API_KEY, and OPENAI_API_KEY are 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.
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.

Resources