: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
perf(error-tracking): raise issue cache capacity and make it configurable (#72101)
Catalin Irimie3a07e9ff2358
diff --git a/rust/cymbal/src/modes/processing/app_context.rs b/rust/cymbal/src/modes/processing/app_context.rsindex cd2662ff205d..b4332752a16e 100644--- a/rust/cymbal/src/modes/processing/app_context.rs+++ b/rust/cymbal/src/modes/processing/app_context.rs@@ -178,7 +178,7 @@ impl AppContext {let process_request_limiter =Arc::new(Semaphore::new(config.process_max_in_flight_requests.max(1)));- let issue_cache = CacheBuilder::new(1000)+ let issue_cache = CacheBuilder::new(config.issue_cache_capacity).time_to_live(Duration::from_secs(config.issue_cache_ttl_seconds)).build();diff --git a/rust/cymbal/src/modes/processing/config.rs b/rust/cymbal/src/modes/processing/config.rsindex f6a627bbe1e1..52257f8a5a19 100644--- a/rust/cymbal/src/modes/processing/config.rs+++ b/rust/cymbal/src/modes/processing/config.rs@@ -73,6 +73,12 @@ pub struct ProcessingConfig {#[envconfig(default = "600")]pub issue_cache_ttl_seconds: u64,+ // Sized generously on purpose: entries are ~100 bytes, and versioned fingerprinting+ // probes this cache once per registered fingerprint version per event, so the working+ // set is several multiples of the distinct-issue count at current event volume.+ #[envconfig(default = "100000")]+ pub issue_cache_capacity: u64,+// Maximum number of in-flight futures for a single `Batch::apply_func` call.// This is a per-call-site limit, not a global pipeline-wide concurrency cap.#[envconfig(default = "64")]