Skip to main content

Meta-package for LLM Tracekit - OpenTelemetry instrumentations for LLM providers.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_tracekit-2.8.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_tracekit-2.8.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file llm_tracekit-2.8.0.tar.gz.

File metadata

  • Download URL: llm_tracekit-2.8.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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}

File hashes

Hashes for llm_tracekit-2.8.0.tar.gz
Algorithm Hash digest
SHA256 43fb8edb8f2178fc1d24a0065796cf611b59497ad82763ec01004f19e94bcef2
MD5 b3a998d657c3e29523cdac6c4cfbfa1c
BLAKE2b-256 50996f7336156980c682f902d34c80972f70f4d4df4e75cb0c2b1ba18a7e0932

See more details on using hashes here.

File details

Details for the file llm_tracekit-2.8.0-py3-none-any.whl.

File metadata

  • Download URL: llm_tracekit-2.8.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for llm_tracekit-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b646ed45827c13e673425dea74ebac9e6f5cab9e6cd1e09108719efc04b0d8
MD5 a3b58a932f28190b847405feeb09a9cf
BLAKE2b-256 0e8c221d0730a256d497f39e077411093f585d1c3b51c838e81ac3c9eb0c69ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page