AgentTrace Lite
A lightweight, local-first observability SDK for AI agents. Track execution, nested spans, errors, and execution time with simple Python decorators or context managers.
Features
- Sync and async function tracing
- Nested spans
- Error tracking
- Execution time measurement
- Custom span attributes
- JSONL trace export
- CLI for viewing and filtering traces
Installation
pip install agenttrace-lite
Quick Start
from agenttrace_lite import Tracer
tracer = Tracer(service_name="my-ai-agent")
@tracer.trace
def run_agent():
return "Hello, AI!"
run_agent()
tracer.flush()
Context Manager
with tracer.span("llm_call") as span:
span.set_attribute("model", "gpt")
View Traces
agenttrace traces
agenttrace traces --status error
agenttrace traces --name llm_call
License
MIT
Metadata
Release files for agenttrace-lite 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agenttrace_lite-0.1.0.tar.gz | 8.0 kB | Without provenance | Details for agenttrace_lite-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agenttrace_lite-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for agenttrace_lite-0.1.0-py3-none-any.whl |
Total release size: 14.4 kB
Release files / agenttrace_lite-0.1.0.tar.gz
| Download URL | agenttrace_lite-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c2bef6ef1f5f3715c155a49fb595cb714ec57d583e808e2a333c1011f61e621
|
|
BLAKE2b-256 checksum How to use checksums |
da1fc8528e3039f20cf007bcdb4400b08753888441a651d6b30149ee8fd72c4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / agenttrace_lite-0.1.0-py3-none-any.whl
| Download URL | agenttrace_lite-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f908d3439d29650acc11557f84c9d820371a4f0d3544598aeff551ede1e8a16
|
|
BLAKE2b-256 checksum How to use checksums |
3f2babde59b102dba3a931e6944897ed02053cab1a08d9323c8a850b9ad24357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for agenttrace-lite 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.