Skip to main content

TraceAgent

Local-first observability for AI agents. Open-source alternative to LangSmith. Trace LangChain, LangGraph, and any Python code with zero config.

Install

pip install traceagent

Quick Start

Option 1: Environment Variables (zero code changes, like LangSmith)

export TraceAgent_ENABLED=true
export TraceAgent_ENDPOINT=http://localhost:6832   # your TraceAgent server
import traceagent  # auto-traces all LangChain/LangGraph calls

result = graph.invoke({"messages": [HumanMessage(content="Hello!")]})
# traces appear at http://localhost:6832

Option 2: Explicit Callback

from traceagent import TraceAgent

lens = TraceAgent(server_url="http://localhost:6832")

result = graph.invoke(
    {"messages": [HumanMessage(content="Hello!")]},
    config={"callbacks": [lens.callback()]}
)

Option 3: Decorators & Context Managers

from traceagent import TraceAgent

lens = TraceAgent()

@lens.observe(name="search", kind="tool")
def search(query: str):
    return results

with lens.trace("My Pipeline") as t:
    result = search("hello")
    t.outputs = {"result": result}

Configuration

Env Variable Description Default
TraceAgent_ENABLED Enable tracing false
TraceAgent_ENDPOINT Server URL http://localhost:6832
TraceAgent_PROJECT Project name default
TraceAgent_TAGS Comma-separated tags
TraceAgent_AUTO_TRACE Auto-attach to LangChain true when enabled

Server

The SDK sends traces to a TraceAgent server. Run it with Docker:

docker run -d -p 6832:6832 ashishgituser/TraceAgent-server:latest

Then open http://localhost:6832 for the dashboard.

See the full project at github.com/ashishgituser/TraceAgent.

Metadata

Release files for traceagent 0.1.1

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

Source distribution (sdist)

Source distribution for traceagent 0.1.1
File Size Uploaded Provenance
traceagent-0.1.1.tar.gz 12.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for traceagent 0.1.1
File Interpreter ABI Platform
traceagent-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.8 kB

Release files / traceagent-0.1.1.tar.gz

Download URL traceagent-0.1.1.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d741208ae4c23e5639bb0963a6edee13359e0a77f29a3a46f08de037541b8263
BLAKE2b-256 checksum
How to use checksums
9b52dac11e70e9f1e1528a862332c1076ce9ee1890477ab83c7dc0ee8547eb84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / traceagent-0.1.1-py3-none-any.whl

Download URL traceagent-0.1.1-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0804bee92e36d14a86b8d91c5353a0c0e9c2696b948c9921f3268331bd2d814e
BLAKE2b-256 checksum
How to use checksums
e09d0e6f95d13495cefc90103cfb33d4b2353ffa57a0e6a86db6fe1739414da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for traceagent 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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