Skip to main content
A live pipeline is an ordinary pipeline over a live source: it emits results while runs are still going instead of after they finish.

Is my agent stuck right now?

tp.watch.otlp() receives traces from any OTLP exporter. This monitor keeps a running note per trace with lm_fold and flags agents that loop or make no headway:
  • Steps stream in as their spans complete.
  • emit="update" emits the fold’s state after every step, not only when the trace ends. Rows have final=False until then, and a version that goes up with each update.
  • .events() yields every row as it’s produced, plus a tp.Closed event when a group ends.
emit="update" works on lm_reduce too, and emit=tp.every(n) updates after every n rows. In batch it changes nothing, and a reduce’s final row always comes from a full reduce at close.

Try it on stored runs

tp.replay plays a stored source back as a stream, so you can build a live pipeline without a live system. Harbor steps are keyed by trial rather than trace:
examples/live_monitor.py is this monitor as a script:

Keep pipelines running on a server

tracepress serve holds one live stream of traces and runs registered pipelines on it continuously. Any client can stream traces in, register a pipeline, or listen:
A pipeline registered later catches up on the stream so far, and registering a name again replaces it.
Registering ships the pipeline’s code (pickled), so the server runs what clients send. It listens on localhost by default; any other --host needs --token.

Next steps

CLI

Every tracepress serve option.

Load traces

Which OpenTelemetry conventions become steps.