Skip to main content

respan-instrumentation-semantic-kernel

Respan instrumentation plugin for Microsoft Semantic Kernel.

Semantic Kernel Python already emits OpenTelemetry spans for kernel functions and chat/text completions when its experimental diagnostics are enabled. This package activates those diagnostics, captures Semantic Kernel prompt/completion log records on the active completion span, and registers a Respan span processor that normalizes the resulting spans to the Respan/OpenTelemetry contract.

Installation

pip install respan-ai respan-instrumentation-semantic-kernel

Usage

from respan import Respan
from respan_instrumentation_semantic_kernel import SemanticKernelInstrumentor

respan = Respan(
    instrumentations=[SemanticKernelInstrumentor()],
)

Any Semantic Kernel work started after initialization is traced through the active Respan OpenTelemetry pipeline. By default the instrumentor enables Semantic Kernel's sensitive diagnostics so prompt and completion content can be attached to chat/text completion spans. Pass capture_content=False to emit model and token metadata without prompt/completion content.

Metadata

Release files for respan-instrumentation-semantic-kernel 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for respan-instrumentation-semantic-kernel 0.1.1
File Size Uploaded
respan_instrumentation_semantic_kernel-0.1.1.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for respan-instrumentation-semantic-kernel 0.1.1
File Interpreter ABI Platform
respan_instrumentation_semantic_kernel-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / respan_instrumentation_semantic_kernel-0.1.1.tar.gz

Download URL respan_instrumentation_semantic_kernel-0.1.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dd01ef19e77d5fb512d9815d8f3fc0455eb07ec65e1b06afa1faf941f11e2670
BLAKE2b-256 checksum
How to use checksums
0df79d85d6bbfc822fb29b30631e19688d45acf865da5432ce49ecb362cf5d4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / respan_instrumentation_semantic_kernel-0.1.1-py3-none-any.whl

Download URL respan_instrumentation_semantic_kernel-0.1.1-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01797329426411d3ebffb93eacc349a84d4dfddb3cd1e3d78e69ee9ff8dcb18d
BLAKE2b-256 checksum
How to use checksums
9e2eb0f049d92c0ae278348b84039cebd622f5069abe0c913b8fdab2e4c8627c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page