Skip to main content
Semantic Kernel is Microsoft’s open-source SDK for blending LLMs with traditional code — kernel functions, planners, and prompt templates. Semantic Kernel emits OpenTelemetry spans natively when OpenLIT is initialized; the openinference-instrumentation-openlit span processor reshapes them into the OpenInference format Arize AX expects.
This guide covers the Python implementation of Semantic Kernel. The same OpenTelemetry principles apply to Semantic Kernel for C# and Java.

Prerequisites

Launch Arize

  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

Setup tracing

Run Semantic Kernel

Expected output

Verify in Arize

  1. Open your Arize AX space and select project semantic-kernel-tracing-example.
  2. You should see a new trace within ~30 seconds containing a chat gpt-5.5 span (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.
  3. If no traces appear, see Troubleshooting.

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.

Troubleshooting

  • No traces in Arize. Confirm ARIZE_SPACE_ID and ARIZE_API_KEY are set in the same shell that runs example.py. Enable OpenTelemetry debug logs with export OTEL_LOG_LEVEL=debug and 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) and openlit.init() both run before any Semantic Kernel call.
  • 401 from OpenAI. Verify OPENAI_API_KEY is set and has access to gpt-5.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.

Resources

Semantic Kernel Documentation

OpenInference OpenLIT Span Processor

Semantic Kernel GitHub