Skip to content

: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.

fix(error-tracking): show full range in rate limit previews (#62387)

Aleksander Błaszkiewicz7ce1d3807059
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/rate_limit/issueRateLimitConfigLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/rate_limit/issueRateLimitConfigLogic.ts
index 2231feb1ca47..e1eaf468e262 100644
--- a/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/rate_limit/issueRateLimitConfigLogic.ts
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/rate_limit/issueRateLimitConfigLogic.ts
@@ -130,6 +130,7 @@ export const issueRateLimitConfigLogic = kea<issueRateLimitConfigLogicType>([
AND toString(issue_id_v2) = '${issueId}'
GROUP BY bucket
ORDER BY bucket
+ LIMIT ${option.bucketCount + 1}
`,
tags: { productKey: ProductKey.ERROR_TRACKING },
})) as HogQLQueryResponse
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/rate_limit/rateLimitConfigLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/rate_limit/rateLimitConfigLogic.ts
index debeec5dacc8..e39649ee4af1 100644
--- a/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/rate_limit/rateLimitConfigLogic.ts
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/rate_limit/rateLimitConfigLogic.ts
@@ -133,6 +133,7 @@ export const rateLimitConfigLogic = kea<rateLimitConfigLogicType>([
AND timestamp >= now() - INTERVAL ${totalMinutes} MINUTE
GROUP BY bucket
ORDER BY bucket
+ LIMIT ${option.bucketCount + 1}
`,
tags: { productKey: ProductKey.ERROR_TRACKING },
},
@@ -167,6 +168,7 @@ export const rateLimitConfigLogic = kea<rateLimitConfigLogicType>([
AND timestamp >= now() - INTERVAL ${totalMinutes} MINUTE
GROUP BY bucket, metric_name
ORDER BY bucket
+ LIMIT ${(option.bucketCount + 1) * 2}
`,
tags: { productKey: ProductKey.ERROR_TRACKING },
},