Expand description
Bounded, advisory worker-telemetry samples.
Telemetry deliberately lives beside the event-sourced run state rather than inside it. Updates take the ordinary per-run lock only to validate the node’s current attempt and terminal status atomically with replacing one sample; they never append an event or rewrite a manifest/node projection.
Structs§
- System
Telemetry Clock - Production telemetry clock.
- Telemetry
Accepted - A successfully accepted telemetry update.
- Telemetry
Update - Strict v1 telemetry update request.
- Telemetry
View - Read view of one node’s advisory telemetry.
Enums§
- Telemetry
Error - Validation or state error from a telemetry update.
- Telemetry
Sample Status - Classification of a telemetry sample for the node’s current attempt.
- Telemetry
State - The four last-told worker activity states.
Constants§
- TELEMETRY_
FRESHNESS_ SECS - How long a received sample remains current.
- TELEMETRY_
MAX_ BYTES - Maximum raw request, normalized request, and stored-sample size.
- TELEMETRY_
PROTOCOL_ VERSION - Worker telemetry protocol version supported by this build.
- TELEMETRY_
SCHEMA_ VERSION - Wire and stored-sample schema version supported by this build.
Traits§
- Telemetry
Clock - Injectable source of wall-clock time used by telemetry updates and reads.
Functions§
- parse_
telemetry_ update - Parse a strict JSON request, rejecting unknown fields and every representation larger than 4 KiB.
- read_
all_ telemetry - Read every projected node’s telemetry under one shared lock and one canonical-currency check. This is the bounded read-surface API for callers that need per-run rows or counts; it avoids recursively locking and rescanning the event log once per node.
- read_
all_ telemetry_ with_ clock read_all_telemetrywith an injected read clock.- read_
telemetry - Read and classify a sample using the production clock.
- read_
telemetry_ with_ clock - Read and classify a sample under the run’s shared lock using an injected clock. An old-attempt sample is intentionally rendered as absent.
- update_
telemetry - Validate and atomically replace the node’s one advisory sample using the production clock.
- update_
telemetry_ with_ clock - Validate and atomically replace the node’s one advisory sample using an injected clock.