openinference-instrumentation-openlit span processor converts them into the OpenInference format Phoenix displays.
Install
Setup
Set your API keys as environment variables:instrumentation.py
Processor ordering matters.
register() installs a default exporter-backed processor. Adding OpenInferenceSpanProcessor() replaces that default, and the BatchSpanProcessor you add after it exports the converted spans to Phoenix.Run Semantic Kernel
example.py
Observe
Open thesemantic-kernel project in Phoenix. Each chat completion appears as a chat gpt-5.5 LLM span (the name reflects the model you called), with the prompt, response, and token usage attached.
Troubleshooting
- Code ran but no spans appear. OpenLIT must be initialized after the tracer provider is registered. Confirm
register()andopenlit.init()both run before any Semantic Kernel call. - Other LLM providers. Semantic Kernel supports Azure OpenAI, Anthropic, Google, and other AI services through its
connectors.ai.<provider>modules. The same OpenLIT and OpenInference setup covers them.

