Skip to main content

Crate appcore_ops

Crate appcore_ops 

Source
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::SharedObservationEvent;
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§

FileObservationSink
Cloneable non-blocking observation sink backed by a bounded worker queue.
FileObservationSinkConfig
Local observation drain limits and retention policy.
FileObservationSinkPressure
Aggregate memory pressure for the file observation queue.
FileObservationSinkStats
Point-in-time counters for one file observation drain.
ObservationMetricsSink
Observation drain that records stable monotonic counters.
OperationalPeerV1
One opaque peer’s independent transport, health and applied progress observations.
OperationalProjectionV1
Independent bounded operational projection for an authenticated partition.
RuntimeAvailabilityReport
Stable health projection for process, local, distributed, and write traffic.

Enums§

DeliveryPhaseV1
Queue phase reported explicitly by the delivery owner.
DiscoveryScopeV1
Scope of discovery. Known peers alone never prove complete discovery.
OperationalStateV1
Observation state; absence of evidence never becomes a health claim.
RuntimeAvailabilityState
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.
MAX_OPERATIONAL_PEERS_V1
Maximum peers in one operational projection.
OBSERVATION_FILE_FORMAT_V1
Stable marker written as the first line of every observation JSONL file.