Documentation Index
Fetch the complete documentation index at: https://docs.tracectrl.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Docker and Docker Compose v2
- Python 3.10+ for the SDK in your agent
- Node.js 20+ only if developing the dashboard
Start the Platform
Choose your setup method
- CLI Wizard (Recommended)
- Manual Setup
- Development Mode
The CLI wizard walks you through configuration, writes your Or from source:
.env file, and launches the stack.Services & Ports
| Service | Port | Purpose |
|---|---|---|
| ClickHouse | 9000 (native), 8123 (HTTP) | Span storage, agent inventory, topology |
| OTel Collector | 4317 (gRPC), 4318 (HTTP) | Receives spans from SDK |
| TraceCtrl Engine | 8000 | REST API, pipeline scheduler |
| TraceCtrl Dashboard | 3000 | Topology graph, session explorer |
Instrument Your Agent
Install the SDK
Add a few lines before your agent code
Tag your agent.
tracectrl.tag_agent(...) attaches identity attributes
(tracectrl.agent.id, tracectrl.agent.name, tracectrl.agent.role) to
every span emitted from this process. Without it, the engine cannot group
spans into the agent inventory or score per-agent risk. For multi-agent
processes, use tag_agents({...}) and call tag_agent inside each agent’s
execution scope.Verify Data Flow
After running your agent, wait ~60 seconds for the pipeline to process, then:Check spans in ClickHouse
Check the agent inventory
Query the Engine API
View the Dashboard
Open http://localhost:3000 in your browser.- Topology — Interactive graph showing agents, tools, and their connections
- Sessions — Trace explorer with full span trees and waterfall timelines
The pipeline runs every 60 seconds by default. If you don’t see data immediately, wait for the next pipeline cycle and check
docker compose logs tracectrl-engine.
