: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
//! Billing counters for the feature-flags service.
//!
//! - [`aggregator`] is the authoritative writer for the production billing
//! keyspace. Each pod aggregates billable requests in memory and flushes
//! them to Redis on a periodic tick (and on graceful shutdown).
//! - [`limiters`] reads the same counters to enforce per-tenant quotas.
pub mod aggregator;
pub mod limiters;
pub mod usage_reporter;
#[cfg(test)]
pub mod usage_test_support;
pub use aggregator::{AggregationKey, BillingAggregator, BillingAggregatorConfig};
pub use limiters::{FeatureFlagsLimiter, SessionReplayLimiter};
pub use usage_reporter::UsageReporter;