: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
pub mod compile;
pub mod evaluate;
pub mod service;
pub use compile::{
compile_rule_set, parse_filter_group, SamplingRuleRow, MAX_FILTER_GROUP_LEAF_VALUES,
MAX_FILTER_GROUP_NODES,
};
pub use evaluate::{
classify_sampling_record, evaluate_log_record, hash01_from_trace_id,
severity_ordinal_from_record, AlwaysKeep, AttributePredicate, CompiledRuleSet,
CompiledSamplingRule, CostUnit, EvaluateResult, RateLimit, RuleType, SamplingClassifyResult,
SamplingDecision, SeverityAction,
};
pub use service::{LogsSamplingService, SAMPLING_RATE_LIMITER_NAME, SAMPLING_STAGE_NAME};