: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
//! Both implementations use the same keys, script text, argument order and time source, so consumers that share a Redis share bucket state.
pub mod keyed;
pub mod logs;
pub mod redis;
pub use keyed::{
system_clock, Clock, KeyRoot, KeyedRateLimit, KeyedRateLimitRequest, KeyedRateLimiter,
KeyedRateLimiterConfig, RateLimiterError, ScriptVersion,
};
pub use logs::{
build_base_redis_key, FilteredMessages, LogsRateLimit, LogsRateLimiter, LogsRateLimiterConfig,
RateLimitedMessage, DEFAULT_LIMITER_NAME,
};
pub use redis::{
token_bucket_v2, token_bucket_v3, LuaScript, RedisTokenBucket, ScriptCall, ScriptReply,
TokenBucketRedis,
};