OpenTelemetry-native observability for multi-agent LLM systems
Project description
agentlog
OpenTelemetry-native observability for multi-agent LLM systems.
Install
pip install agentlog[openai] # for OpenAI
pip install agentlog[litellm] # for LiteLLM (covers Bedrock, Anthropic, Gemini)
Quick Start
import agentlog
agentlog.init() # patches LLM clients, exports spans to collector at localhost:4317
import openai
client = openai.OpenAI()
response = client.chat.completions.create(model="gpt-4o", messages=[...])
# ^ this call is now automatically traced
Multi-Agent Tracing
@agentlog.agent(name="supervisor")
def supervisor(input):
# all LLM calls here are grouped under "supervisor"
...
@agentlog.agent(name="researcher")
def researcher(query):
# all LLM calls here are grouped under "researcher"
...
What Gets Captured
Every LLM call emits a span with:
- Full prompt (messages array)
- Full response (content + tool calls)
- Model name (requested and resolved)
- Token counts (input + output)
- Finish reason
- Timing and parent-child relationships
Infrastructure
The SDK sends spans to an OpenTelemetry Collector. Deploy the full stack (collector + ClickHouse + trace viewer UI) via the Helm chart:
helm install agentlog oci://ghcr.io/medhaj-ops/agentlog/chart
Or run locally with Docker Compose:
git clone https://github.com/Medhaj-ops/agentlog && cd agentlog
docker compose up -d
Links
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentlog_ai-0.1.0a1.tar.gz.
File metadata
- Download URL: agentlog_ai-0.1.0a1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57889ed35f8f4743f3f55e0cacd807ca69c6c0c8b7867aa9614dd16585e18baf
|
|
| MD5 |
b9fd7247d7e3be0be671006b48af82b0
|
|
| BLAKE2b-256 |
ee0e199c01d49d510fc89ba736f89c542f8679d9dc48702c7baf63077206cf85
|
File details
Details for the file agentlog_ai-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: agentlog_ai-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a99e796c8768d6f40c49d039444f653e56daca1797ab012cf9e788a9226045d
|
|
| MD5 |
9eb874962321e3b3074a1d289562c9d1
|
|
| BLAKE2b-256 |
658f23b78051c8b092f129783eb937c89656bf14fd5661d92aca38de31ea1215
|