Run tracking for agent systems. A source turns a framework's run into one event model; the model travels on a structlog channel of its own; a bus fans it out to parallel sinks, each reading the partial view it declares.
framework hooks ─► source ─► fold ─► channel (validate → publish → forward to host logger)
│
└─► bus ─┬─► otlp spans + logs → Langfuse · LangSmith · Tempo · Phoenix
├─► live per-thread replay + push → the viewer, a chat
└─► yours any SinkPort, any EventView
Part of the EDamLabs eager series: EDamLabs' own e- products (EDamLabs families).
Install
uv add "e-track[langgraph,otel]" # or: pip install "e-track[langgraph,otel]"
Extras: langgraph (LangGraph/deepagents source and topology), otel (OTLP driver), topology (layout), viewer
(the live canvas on Litestar + granian), all.
Python 3.14+, typed (py.typed).
Usage
from contextlib import AsyncExitStack
from etrack.logic.api import Tracker
from etrack.logic.channel import EventChannel
from etrack.models.event import EventKind
from etrack.providers.adapters.bus.anyio import AnyioAdapter
from etrack.providers.adapters.sink.live import LiveAdapter
from etrack.providers.adapters.source.langgraph import LanggraphSourceAdapter
from etrack.providers.drivers.sink.otlp import OtlpDriver
async with AsyncExitStack() as stack: # the host's composition root
live = await stack.enter_async_context(LiveAdapter())
otlp = await stack.enter_async_context(OtlpDriver())
bus = AnyioAdapter()
bus.subscribe(live)
bus.subscribe(otlp, select=lambda event: event if event.part is None else None) # policy per sink
await stack.enter_async_context(bus) # opened last: closed first, drains into the sinks
tracker = Tracker(EventChannel(bus), LanggraphSourceAdapter(mcp=frozenset({"onto_query"})))
with tracker.track(thread="t1", config={"configurable": {"thread_id": "t1"}}) as run:
await graph.ainvoke({"messages": [("user", "hola")]}, run.config)
with run.fold.span("gate", kind=EventKind.EVALUATION):
... # the project's own code, same tree
With the house renderer (ELogger) on the host:
2026-11-03T12:00:00Z | INFO | run.event || run_id: 019a… || kind: node || phase: start || name: agent || step: 1
Every frame is also a line on the host's etrack logger, rendered by the host's own structlog setup; e-track never
configures logging.
The viewer
viewer = Viewer(watch=live, topology=LanggraphTopologyAdapter().read(graph))
async with GranianAdapter(viewer.app) as server: # http://127.0.0.1:28130 — or mount viewer.app anywhere
...
The declared graph lit live by its spans, a dropdown of every thread the live sink keeps, the span tree with each span's input, output and deltas. Server-Sent Events over Litestar, served by granian inside the host's own loop.
The record
| Field | What |
|---|---|
run_id, thread_id |
the run (32 hex, also the W3C trace id) and the conversation |
seq, id, parent |
order within the run; the span and its visible parent |
kind |
run agent subagent node llm embedding retrieval tool mcp interrupt state evaluation custom |
phase |
start delta end error instant |
part |
on deltas: text reasoning tool_call image audio video file custom |
node, ns, step, visit |
graph coordinates: node, subgraph path, superstep, times the run entered the node |
message_id, call_id |
the chat message and the tool call a client renders |
model, usage, error |
typed sections: provider/name/params, tokens/cost, failure |
payload, attributes |
what the span carried (redacted); the open, namespaced extension bag |
Grow it by subclassing RunEvent and passing the subclass to EventChannel(model=…); read it through an EventView.
The full guide lives at edamlabs.github.io/e-track.
Development
make install # sync deps + prek hooks
make check # lint + type + arch + validate + test
make cov # coverage gate: 100 % lines and branches, every outbound service faked in process
make integration # real services: the session fixtures bring tests/sandbox/compose.yml up and down (collector + Phoenix)
make ci # every gate CI runs, in one command
Stack: uv · ruff · ty · tach · pytest (xdist, randomly, pytest-docker) · prek · zizmor · Zensical · Renovate.
Released from a v* tag through PyPI trusted publishing; maintained by the EDamLabs fleet.
Metadata
Release files for e-track 0.1.3
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 |
|---|---|---|---|---|
| e_track-0.1.3.tar.gz | 227.5 kB | With provenance | Details for e_track-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| e_track-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for e_track-0.1.3-py3-none-any.whl |
Total release size: 413.2 kB
Release files / e_track-0.1.3.tar.gz
| Download URL | e_track-0.1.3.tar.gz |
|---|---|
| Size | 227.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2407abfdfc25c153d6e74465c9e1e240b0fda99a61c4ed9d7dee216a46f32b8d
|
|
BLAKE2b-256 checksum How to use checksums |
f8199fad8c5a923b9825b5258bf7b068b6ba0b8c76621e9cd8fee656c374cbe2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 3, 2026.
Transparency logRelease files / e_track-0.1.3-py3-none-any.whl
| Download URL | e_track-0.1.3-py3-none-any.whl |
|---|---|
| Size | 185.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c18e7819ac5512f55795d9b820a3b14dee2335fadfd67a151967ec9901b8046
|
|
BLAKE2b-256 checksum How to use checksums |
cb7bdc9f762710b7b5a945534049e25456fadcdae750e540d4b9fbb54249e1c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 3, 2026.
Transparency logSecurity for e-track 0.1.3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for e_track-0.1.3.tar.gz
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 Nov 3, 2026.
Transparency logA 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.