🛡️ traceguard-sdk
The core instrumentation library for the TraceGuard platform.
traceguard-sdk provides lightweight, OpenTelemetry-backed decorators and context managers to automatically trace your LLM agents, tools, and swarm topologies.
Installation
pip install traceguard
Usage
Instrumenting an Agent and a Tool is as simple as adding decorators.
import os
from traceguard.telemetry import AgentTracer
# Initialize the tracer
tracer = AgentTracer(agent_name="my-research-agent", environment="production")
# Trace a tool call
@tracer.trace_tool()
def search_web(query: str):
# Simulated search
return f"Results for {query}"
# Trace an entire agent execution cycle
@tracer.trace_agent_cycle()
def run_agent_loop(task: str):
print(f"Executing task: {task}")
result = search_web(task)
return result
if __name__ == "__main__":
run_agent_loop("Quantum computing startups")
Features
- OpenTelemetry Standard: 100% compliant with OTLP. Export traces to Jaeger, Datadog, or the local TraceGuard SQLite database.
- Swarm Cycle Detection: Automatically detect graph cycles in multi-agent environments.
- Granular RAG Tracing: Trace chunk retrieval and vector store latency.
For full documentation, visit the TraceGuard Github Repository.
Metadata
Release files for traceguard-ai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| traceguard_ai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / traceguard_ai-0.1.0-py3-none-any.whl
| Download URL | traceguard_ai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 36.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9047ab8914d2ed71a2b7e1ca3050b2544d52ee84be8254775fb84ab912c6d881
|
|
BLAKE2b-256 checksum How to use checksums |
642bdd48fbbe5d9f1af193e514068a3253a1d4bcaf380cc0434502faf5cb9f84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency log