Skip to content

feat(telemetry): a lane on a node sends its own lines through its requester (#287) - #288

Merged
7schmiede merged 2 commits into
mainfrom
feat/lane-telemetry-relay
Oct 26, 2026
Merged

7schmiede merged 2 commits into
mainfrom
feat/lane-telemetry-relay

Conversation

@7schmiede

Copy link
Copy Markdown
Member

Closes #287 (option 1: the requester relays).

  • telemetry.rs: a RELAY state for the daemon of a lane on a node (DEVSTACK_REMOTE_LANE): no pools asked, nothing sent; lines kept (newest 5,000), take_relayed hands them over once. record_relayed on the requester sets lane (the developer's name), node, place = remote and records them with its own lines — only while it sends telemetry (its consent, its member identity via the coordinator).
  • api.rs: POST /v1/telemetry/take ({"lines": [...]}, empty in any daemon that does not relay). Not among the read-only paths a shared lane's viewers get.
  • remote.rs: follow_telemetry, every 30 s, beside sync/renew/state.
  • ADR-0037: addendum 2026-10-26 (proposed) — needs the owner's accept. Docs: docs/pool.md, docs/dashboard-api.md, CHANGELOG.
  • Tests: unit test of relay/take/relabel (bounded, newest kept, taken once, nothing recorded when the requester sends none); remote_lane.rs (Linux CI job remote-lane) takes the lane's lines through the requester's API and finds its daemon_start, taken once.

Lossy as ADR-0037 point 5: what the lane logs in its last 30 s before it stops is not taken. The lane's gauges are not relayed. Takes effect once the node runs this version (the node supplies the lane's daemon).

🤖 Generated with Claude Code

7schmiede and others added 2 commits October 26, 2026 20:33
…uester (#287)

The daemon in a node's lane container sent nothing: it has no pool
membership (and gets no member key). In a lane on a node it now keeps its
diagnostic lines (the newest 5,000, masked as every line) and hands them
over on `POST /v1/telemetry/take`, each once. The daemon that follows the
lane takes them every 30 s while it sends telemetry, and records them as
lines of that lane on its node (`place` `remote`), sent with its own under
its consent and member identity. An older node's lane answers 404 and is
skipped. ADR-0037 gets an addendum (proposed).

Closes #287

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit ebce05d into main Oct 26, 2026
13 checks passed
@7schmiede
7schmiede deleted the feat/lane-telemetry-relay branch October 26, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telemetry: a lane on a node sends nothing of its own daemon

1 participant