Semantic Kernel
Learn how to export Semantic Kernel traces to Openlayer
Semantic Kernel is an open-source SDK from Microsoft that helps you build AI applications using languages like Python, C#, and Java. It comes with built-in OpenTelemetry instrumentation, making it easy to export trace data.
This guide shows how to export Semantic Kernel traces to Openlayer for observability and evaluation.
Configuration
The integration works by sending trace data to Openlayer’s OpenTelemetry endpoint.
The full code used in this guide is available here.
To set it up, you need to:
Set the environment variables
Set the following environment variables:
Initialize OpenLIT and Semantic Kernel
Initialize OpenLIT and Semantic Kernel in your application.
Run LLMs and workflows as usual
Once instrumentation is set up, you can run your LLM calls as usual. Trace data will be automatically captured and exported to Openlayer, where you can begin testing and analyzing it.
For example: