docs: the agent telemetry hop carries logs now, not only stats
observability.md scoped the whole feature to Claude Code statistics, so a reader asking what leaves an agent container would have concluded counters and nothing else. That page also documents the trust properties of the agent->collector hop, and those are what needs restating for a richer payload: same destination, same credential, same already-accepted ability to push arbitrary OTLP. What changes is how much detail leaves by default. docs/swarm/services.md needs no change. It already said each hive ships the journals of "the harness units inside every agent container" — which was not true until now. Part of #3940.
This commit is contained in:
parent
07639fd364
commit
ccde8a2445
1 changed files with 12 additions and 3 deletions
|
|
@ -1,8 +1,9 @@
|
|||
# Observability (OpenTelemetry)
|
||||
|
||||
hyperhive has built-in support for exporting per-agent Claude Code statistics —
|
||||
token usage, cost, tool call counts — to any OTLP-compatible collector via
|
||||
Claude Code's built-in OpenTelemetry integration.
|
||||
hyperhive has built-in support for exporting each agent container's telemetry to
|
||||
any OTLP-compatible collector: Claude Code statistics — token usage, cost, tool
|
||||
call counts — via Claude Code's built-in OpenTelemetry integration, and the
|
||||
container's journal, forwarded by a collector running inside it.
|
||||
|
||||
This is a **hive-wide** setting: one switch in the host NixOS config enables it
|
||||
for every agent container simultaneously. No per-agent opt-in or opt-out exists.
|
||||
|
|
@ -67,6 +68,14 @@ that.** Treat it as a convenience for grouping dashboards, never as evidence of
|
|||
which container produced a sample: any agent that can reach this hive's
|
||||
collector can label its data as any other agent.
|
||||
|
||||
**Logs ride the same hop, and a journal carries more than a counter does.** Each
|
||||
agent container forwards its own journal through this port — every unit in it at
|
||||
`info` and above, not an allowlist. That's the harness, the MCP daemons and
|
||||
whatever a tool call spawned, so command lines and error text now leave the
|
||||
container where before only counts did. The trust boundary is unchanged (same
|
||||
destination, same credential, and an agent could already send arbitrary OTLP);
|
||||
what changes is how much detail leaves by default.
|
||||
|
||||
Worth spelling out, because two different hops are in play and only one of them
|
||||
is getting a credential:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue