Skip to content

Commit bed299c

Browse files
fix: add usage hints to server startup output (#185)
The server startup only showed host/port/storage/health, leaving users unclear on what the server is for and how to connect agents to it. Add a concise block explaining: purpose, how to point agents at it, the API surface, and the local commands for inspecting, HTML export, and OTLP export. Bumps to 0.64.6. Co-authored-by: Ona <no-reply@ona.com>
1 parent 99c7c5c commit bed299c

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/agent_trace/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""agent-trace: strace for AI agents."""
22

3-
__version__ = "0.64.5"
3+
__version__ = "0.64.6"

src/agent_trace/server.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,13 @@ def run_server(
387387
f"[agent-strace server] listening on {host}:{port}{auth_note}\n"
388388
f"[agent-strace server] storage: {Path(storage_dir).resolve()}\n"
389389
f"[agent-strace server] health: http://{host}:{port}/health{dash_note}\n"
390+
f"\n"
391+
f"[agent-strace server] purpose : collect traces from remote agents\n"
392+
f"[agent-strace server] usage : set AGENT_STRACE_ENDPOINT=http://<this-host>:{port} on each agent machine\n"
393+
f"[agent-strace server] api : POST /events POST /sessions GET /sessions GET /sessions/<id>/events\n"
394+
f"[agent-strace server] inspect : agent-strace list / replay / export (reads the same storage dir)\n"
395+
f"[agent-strace server] html : agent-strace replay --format html (shareable single-file viewer)\n"
396+
f"[agent-strace server] otlp : agent-strace export --format otlp --endpoint <collector-url>\n"
390397
)
391398
try:
392399
server.serve_forever()

0 commit comments

Comments
 (0)