
Minimal, zero-dependency Python observability.
Error tracking and performance timing for Python 3.12+ using only the standard library.
pip install tracekit-sdkInstrument your code in seconds
Initialize once at startup, decorate functions, and inspect clean output right away.
app.py
import timeimport tracekit
tracekit.init(output="console", environment="production")
@tracekit.tracedef process_order(order_id: int) -> dict: time.sleep(0.012) return {"id": order_id, "status": "ok"}
tracekit.capture_message("Service started", level="info")process_order(101)tracekit.flush()terminal
[TraceKit 2026-11-28 09:56:01] INFO Service started[TraceKit 2026-11-28 09:56:01] SPAN process_order (15.03ms) okWhy TraceKit
Everything you need to catch errors and spot slow code without pulling in a framework.
Zero dependencies
Built purely on the Python 3.12+ standard library. Nothing extra to install or conflict with your app.
Automatic exception hooks
Captures unhandled errors in the main thread, worker threads, and asyncio loops without hiding tracebacks.
@trace & span()
Measure sync and async functions with a single decorator, or time any block using a context manager.
Isolated context
Attach user details, tags, and up to 20 breadcrumbs per thread or async task via contextvars.
Three output modes
Send events to stderr in development, append JSONL files for tracekit tail, or batch POST to tracekit serve.
Filtering & scrubbing
Sample spans, ignore noisy errors, mutate events with before_send, and redact sensitive keys automatically.
How it works
Events are filtered, scrubbed, and queued on a single background thread so your app never blocks.
Your Python code
@trace · span() · hooks
TraceKit SDK
filter · scrub · queue (1000)
Output sink
console · file · local viewer
See it in action
Real output from a small order-processing script when a missing dictionary key triggers a crash.

tracekit.init() and @tracekit.trace.
Ready to try TraceKit?
Follow the 2-minute quick start guide or install tracekit-sdk from PyPI.