:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
//! Unified app lifecycle: signal trapping, component registration with RAII drop guards,
//! coordinated graceful shutdown, internal health monitoring, K8s readiness/liveness probes,
//! and metrics. The monitor runs on a dedicated OS thread with an isolated tokio runtime
//! so it stays responsive regardless of app workload.
mod error;
mod handle;
mod liveness;
mod manager;
mod metrics;
mod readiness;
mod signals;
pub use error::LifecycleError;
pub use handle::{Handle, ProcessScopeGuard};
pub use liveness::{LivenessHandler, LivenessStatus};
pub use manager::{ComponentOptions, Manager, ManagerBuilder, MonitorGuard, PrestopAction};
pub use readiness::ReadinessHandler;