: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
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("etcd error: {0}")]
Etcd(#[from] etcd_client::Error),
#[error("serialization error: {0}")]
Serialization(#[from] serde_json::Error),
#[error("leadership lost")]
LeadershipLost,
#[error("invalid state: {0}")]
InvalidState(String),
}
pub type Result<T> = std::result::Result<T, Error>;