Expand description
Observability contracts for runtime health, logging, and heartbeat signals.
Re-exports§
pub use health::BasicHealthCheck;pub use health::HealthCheck;pub use health::HealthReport;pub use health::HealthStatus;pub use heartbeat::Heartbeat;pub use heartbeat::HeartbeatSource;pub use heartbeat::StaticHeartbeatSource;pub use log::InMemoryLogPressure;pub use log::InMemoryLogger;pub use log::LogLevel;pub use log::LogRecord;pub use log::LogSnapshot;pub use log::RuntimeLogger;pub use log::StdoutLogger;pub use log::MAX_IN_MEMORY_LOG_BYTES;pub use log::MAX_IN_MEMORY_LOG_RECORDS;pub use log::MAX_LOG_TARGET_BYTES;pub use metrics::InMemoryMetrics;pub use metrics::MetricCounter;pub use metrics::MetricRegistryPressure;pub use metrics::MetricSnapshot;pub use metrics::MAX_IN_MEMORY_METRICS;pub use metrics::MAX_IN_MEMORY_METRIC_BYTES;pub use metrics::MAX_METRIC_NAME_BYTES;pub use observation::InMemoryObservationPressure;pub use observation::InMemoryObservationSink;pub use observation::ObservationEvent;pub use observation::ObservationKind;pub use observation::ObservationSeverity;pub use observation::ObservationSink;pub use observation::ObservationSnapshot;pub use observation::MAX_IN_MEMORY_OBSERVATION_BYTES;pub use observation::MAX_IN_MEMORY_OBSERVATION_ITEMS;pub use observation::MAX_OBSERVATION_ATTRIBUTES;pub use observation::MAX_OBSERVATION_DRAINS;pub use observation::MAX_OBSERVATION_KEY_BYTES;pub use observation::MAX_OBSERVATION_NAME_BYTES;pub use observation::MAX_OBSERVATION_TRACE_BYTES;pub use observation::MAX_OBSERVATION_VALUE_BYTES;
Modules§
- health
- Health status contracts for runtime observability checks.
- heartbeat
- Heartbeat contracts for runtime liveness signals.
- log
- Logging contracts for runtime observability.
- logging
- Structured logging infrastructure shared by operational observers.
- metrics
- Minimal in-memory counters for local runtime diagnostics.
- observation
- Bounded, tool-independent runtime observation events.
Structs§
- File
Observation Sink - Cloneable non-blocking observation sink backed by a bounded worker queue.
- File
Observation Sink Config - Local observation drain limits and retention policy.
- File
Observation Sink Pressure - Aggregate memory pressure for the file observation queue.
- File
Observation Sink Stats - Point-in-time counters for one file observation drain.
- Observation
Metrics Sink - Observation drain that records stable monotonic counters.
- Runtime
Availability Report - Stable health projection for process, local, distributed, and write traffic.
Enums§
- Runtime
Availability State - Coarse operational availability exposed to supervisors and routers.
Constants§
- FILE_
OBSERVATION_ FLUSH_ TIMEOUT - Default deadline shared by flush queue admission and acknowledgement.
- MAX_
FILE_ OBSERVATION_ QUEUE_ BYTES - Maximum queued observation bytes, including the event currently being written.
- MAX_
FILE_ OBSERVATION_ QUEUE_ ITEMS - Maximum item capacity accepted by the file observation queue.
- OBSERVATION_
FILE_ FORMAT_ V1 - Stable marker written as the first line of every observation JSONL file.