hive-agent: warn + emit an OTEL gauge on a grown CLAUDE.md

This commit is contained in:
damocles 2026-08-26 18:17:46 +02:00 committed by mara
commit 2e6f38dc6c
4 changed files with 219 additions and 0 deletions

View file

@ -236,6 +236,7 @@ here; that's already covered by Claude's own export.
| `hyperhive.agent.session.count` | — | counter | `model` (incremented once per fresh, non-`--continue`'d session) |
| `hyperhive.agent.loose_ends.threads` | — | gauge | none |
| `hyperhive.agent.loose_ends.reminders` | — | gauge | none |
| `hyperhive.agent.claude_md.lines` | — | gauge | none — recorded from the `CLAUDE.md`-size watch's own ~15-minute tick, **not** per turn like the rows above |
Resource attributes (`service.name`, `agent`, `hive`, `swarm`) come from the
same container-wide `OTEL_RESOURCE_ATTRIBUTES` as everything else in this