Registry / llm-agents / llm-tracekit

llm-tracekit

JSON →
library2.8.1pypypiunverified

Meta-package for LLM Tracekit - OpenTelemetry instrumentations for LLM providers. Current version: 2.8.1. Release cadence: frequent, follows semantic versioning.

pip install llm-tracekit
INSTALL
IMPORT
SIG · LLM-TRACEKIT
L
llm-tracekit
llm-agentspythonv2.8.1
Install
5.9s avg
Import
Disk
56MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.8.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 59.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 5.9s · import 0.000s · 57MB
56MB installed
● package 56MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tracekit
from llm_tracekit import Tracekit
from llm_tracekit import LLMTracekit
Class is named Tracekit, not LLMTracekit
enable_instrumentations
from llm_tracekit import enable_instrumentations
from llm_tracekit.instrument import enable
Function is at top-level, not nested

Initialize Tracekit with basic OpenTelemetry configuration. Ensure OTEL_EXPORTER_OTLP_ENDPOINT is set for remote export.

import os from llm_tracekit import Tracekit tk = Tracekit( service_name="my-llm-app", otlp_endpoint=os.environ.get('OTEL_EXPORTER_OTLP_ENDPOINT', 'http://localhost:4317'), enable_console=True ) tk.start() # Use with OpenAI, Anthropic, etc.
Debug
Known issues
gotchaIf you install llm-tracekit without opentelemetry-sdk, console export may fail silently.
fix
Install opentelemetry-sdk: pip install opentelemetry-sdk
affects: >=2.0
breakingTracekit class moved from llm_tracekit.core to llm_tracekit in v2.0. Old import breaks.
fix
Change 'from llm_tracekit.core import Tracekit' to 'from llm_tracekit import Tracekit'
affects: <2.0 -> >=2.0
gotchaSetting enable_console=True may cause high log volume in production.
fix
Use only for debugging; set via environment variable OTEL_TRACES_EXPORTER=console for consistency.
affects: all
Upgrade
Version history
2.8.1latest on PyPI · released Apr 30, 2026
Audit
Dependencies
opentelemetry-apirequiredRequired for OpenTelemetry tracing basics
opentelemetry-sdkoptionalRequired to export spans
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
2
Resources
llm-tracekit — pip install llm-tracekit · libregistry