Skip to content
@traceact

TraceAct

TraceAct logo

TraceAct

X-ray vision for Python code.

TraceAct is a lightweight Python package for action-level tracing. It records the full story of what happens when a function runs — every step taken, resource touched, event recorded, and failure encountered — so you or your agent can understand what actually happened. Zero runtime dependencies.

Repositories

Repo What it is
traceact The core package: @traced_action decorator, sinks (JSONL, SQLite, HTTP, OTLP), TraceLog query interface, distributed trace propagation, and the bundled local viewer
demo A runnable Flask app exercising every sink and feature, for trying TraceAct before wiring it into your own project

Install

pip install traceact

Quick start

from traceact import traced_action, configure, TraceConfig, JsonlSink

configure(
    config=TraceConfig(sink_mode="blocking"),
    sinks=[JsonlSink("data/traces.jsonl")],
)

@traced_action(action="note.create", kind="app", actor="user")
def create_note(title, body):
    ...
traceact view data/traces.jsonl

Full API and configuration reference: USAGE.md.


Built by Mo Shehu.

Popular repositories Loading

  1. traceact traceact Public

    X-ray vision for your code. Lightweight action-level tracing for Python.

    Python

  2. demo demo Public

    Flask demo app for TraceAct — fire actions, inspect traces, explore the system graph

    JavaScript

  3. .github .github Public

    Organization profile

Repositories

Showing 3 of 3 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…