Tracing

OpenTelemetry tracing for AgentOS agents, teams, and workflows, including filtering, metrics, trace trees, and ClickHouse storage.

ExampleDescription
Enable AgentOS TracingEnable OpenTelemetry tracing for a served agent with one AgentOS flag.
Filter Traces Through AgentOSBuild a composable FilterExpr, apply it directly to the tracing database, and send the same expression to POST /traces/search.
Refresh and Read AgentOS MetricsCreate a persisted agent run, refresh daily aggregates through POST /metrics/refresh, then read the stored result through GET /metrics.
Read Trace Trees Through AgentOSGenerate one synchronous and one asynchronous agent run, list their traces through GET /traces, then fetch GET /traces/{trace_id} and print each nested span tree.
Route AgentOS Traces to ClickHouseKeep transactional sessions in SQLite while batching trace spans into a dedicated ClickHouse OLAP store.