Skip to main content

LLM Tracekit

Open-source observability for your LLM application, based on OpenTelemetry.

LLM Tracekit is a set of OpenTelemetry instrumentations that gives you complete observability over your LLM application. Because it uses OpenTelemetry under the hood, it can be connected to your existing observability solutions - Coralogix, Datadog, Honeycomb, and others.

🚀 Getting Started

Install the instrumentation for your LLM provider:

pip install llm-tracekit-openai             # For OpenAI
pip install llm-tracekit-bedrock            # For AWS Bedrock
pip install llm-tracekit-gemini             # For Google Gemini
pip install llm-tracekit-google-adk         # For Google ADK
pip install llm-tracekit-litellm            # For LiteLLM
pip install llm-tracekit-langchain          # For LangChain
pip install llm-tracekit-langgraph          # For LangGraph
pip install llm-tracekit-openai-agents      # For OpenAI Agents SDK
pip install llm-tracekit-strands            # For Strands Agents
pip install llm-tracekit-anthropic          # For Anthropic (Claude API)
pip install llm-tracekit-microsoft-foundry  # For Microsoft Foundry

Then instrument your code:

from llm_tracekit.openai import OpenAIInstrumentor, setup_export_to_coralogix

setup_export_to_coralogix(
    service_name="my-ai-service",
    capture_content=True,
)

OpenAIInstrumentor().instrument()

from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello!"}],
)

🪗 What do we instrument?

LLM Providers

Provider Package Instrumentor
OpenAI llm-tracekit-openai OpenAIInstrumentor
AWS Bedrock llm-tracekit-bedrock BedrockInstrumentor
Google Gemini llm-tracekit-gemini GeminiInstrumentor
Anthropic llm-tracekit-anthropic AnthropicInstrumentor
Microsoft Foundry llm-tracekit-microsoft-foundry MicrosoftFoundryInstrumentor

Frameworks

Framework Package Instrumentor
Google ADK llm-tracekit-google-adk GoogleADKInstrumentor
LiteLLM llm-tracekit-litellm LiteLLMInstrumentor
LangChain llm-tracekit-langchain LangChainInstrumentor
LangGraph llm-tracekit-langgraph LangGraphInstrumentor
OpenAI Agents SDK llm-tracekit-openai-agents OpenAIAgentsInstrumentor
Strands Agents llm-tracekit-strands StrandsInstrumentor

📖 Usage

Setting up tracing

Export to Coralogix

from llm_tracekit.openai import setup_export_to_coralogix

setup_export_to_coralogix(
    service_name="ai-service",
    application_name="ai-application",
    subsystem_name="ai-subsystem",
    capture_content=True,
)

🛡️ Guardrails

LLM Tracekit also includes Coralogix Guardrails - a client for protecting your LLM applications with content moderation, PII detection, prompt injection detection, and more.

See the Guardrails documentation for details.

📚 Documentation

For detailed documentation on each instrumentation, see the individual READMEs:

📜 License

Apache 2.0 - See LICENSE for details.

Metadata

Release files for llm-tracekit 2.9.0

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

Built distribution (wheel)

Table of built distributions (wheels) for llm-tracekit 2.9.0
File Interpreter ABI Platform
llm_tracekit-2.9.0-py3-none-any.whl Python 3 none any Details

Release files / llm_tracekit-2.9.0-py3-none-any.whl

Download URL llm_tracekit-2.9.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cb25f124ae8736b27cbb42352b5a1c8f915b0e823ee0e0ceff76f4f88464203
BLAKE2b-256 checksum
How to use checksums
04830c741cca6af68523fe68429ac81f7472191bb2b196497c4e52e391484ee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

2.9.0 This release

1 release file

2.8.1

2 release files

2.8.0

2 release files

2.7.1

2 release files

2.6.2

2 release files

2.6.1

1 release file

2.6.0

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.7.0

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.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