openinference-instrumentation-openlit span processor reshapes them into the OpenInference format Arize AX expects.
Prerequisites
- Python 3.10+
- An Arize AX account (sign up)
- An
OPENAI_API_KEYfrom the OpenAI Platform
Launch Arize
- 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
Setup tracing
Run Semantic Kernel
Expected output
Verify in Arize
- Open your Arize AX space and select project
semantic-kernel-tracing-example. - You should see a new trace within ~30 seconds containing a
chat gpt-5span (the span name reflects whichever model you called) emitted by OpenLIT and reshaped by the OpenInference processor, with the prompt, response, and token usage attached. - If no traces appear, see Troubleshooting.
Troubleshooting
- No traces in Arize. Confirm
ARIZE_SPACE_IDandARIZE_API_KEYare set in the same shell that runsexample.py. Enable OpenTelemetry debug logs withexport OTEL_LOG_LEVEL=debugand re-run. - Code ran but no spans appear. OpenLIT must be initialized after the global tracer provider is set. Confirm
otel_trace.set_tracer_provider(tracer_provider)andopenlit.init()both run before any Semantic Kernel call. 401from OpenAI. VerifyOPENAI_API_KEYis set and has access togpt-5. Swap for a model your key can call.- Other LLM providers. Semantic Kernel supports many AI services — Azure OpenAI, Anthropic, Google, and others via the matching
connectors.ai.<provider>modules. The same OpenLIT + OpenInference setup covers them.