Skip to main content
Collect metrics and traces from a running server. The runtime records what runs. Tool and agent runs produce traces; aggregate counts and latencies roll up into metrics. You query both from the CLI. A monitoring backend plugin persists and serves the data; the monitor extension traces a standalone tool call as one span.

Query metrics

Query aggregate metrics over a time range. --from and --to take an ISO instant or a relative token (7d, 30d); --granularity is hour, day, or week.

List and read traces

1

List runs

List observability runs, or download the filtered list with --export.
2

Read one trace

Get one run’s full trace, or download it as JSON with --export.

Trace a standalone tool call

A tool call outside a flow or agent has no trace of its own. Load the monitor extension and stack it onto a tool to record the call as one live span. Load the module, then attach monitor to a tool.
manifest.yml
When a flow or agent trace already owns the call, the extension suppresses its own span and just runs the tool.
Metrics and traces are served by a monitoring backend plugin, registered under monitoring_module. Without one, the runtime uses a no-op default and there is nothing to query. To build a backend, see Author a monitoring backend.

See also