: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
chore(endpoints): drop the per-team concurrency rejection counter (#121749)
Jovan Sakovic8deaade2c95b
diff --git a/products/endpoints/backend/logic/execution.py b/products/endpoints/backend/logic/execution.pyindex 5021bf37c9be..9152ffce9f24 100644--- a/products/endpoints/backend/logic/execution.py+++ b/products/endpoints/backend/logic/execution.py@@ -82,7 +82,6 @@ from products.endpoints.backend.logic.validation import NATIVE_CLUSTER_UNSUPPORTfrom products.endpoints.backend.logs import build_execution_message, log_endpoint_executionfrom products.endpoints.backend.metrics import (ENDPOINT_CACHE_RESULT_TOTAL,- ENDPOINT_CONCURRENCY_REJECTED_TOTAL,ENDPOINT_EXECUTION_DURATION_SECONDS,ENDPOINT_EXECUTION_TOTAL,ENDPOINT_HOGQL_RESULT_ROWS,@@ -637,7 +636,6 @@ class EndpointExecutionService(PydanticModelMixin):)raise ValidationError("Query resolution failed: unable to resolve table or field references.")except ConcurrencyLimitExceeded:- ENDPOINT_CONCURRENCY_REJECTED_TOTAL.labels(team_id=str(self.team.pk)).inc()record_endpoint_rate_limited(team_id=self.team.pk,endpoint_name=endpoint.name,diff --git a/products/endpoints/backend/metrics.py b/products/endpoints/backend/metrics.pyindex 74d35cef2bfb..03b552ff0b52 100644--- a/products/endpoints/backend/metrics.py+++ b/products/endpoints/backend/metrics.py@@ -9,7 +9,7 @@ def query_kind_label(query: dict | None) -> str:ENDPOINT_EXECUTION_TOTAL = Counter("posthog_endpoint_execution_total",- "Endpoint executions that reached query execution (excludes concurrency rejections; see posthog_endpoint_concurrency_rejected_total). "+ "Endpoint executions that reached query execution (excludes concurrency rejections; see posthog_endpoint_rate_limited_total). ""status is success; user_error (invalid query/variables in the user's endpoint, returned as 4xx); ""query_performance (the query hit a ClickHouse cost guardrail — timeout/memory/size/estimated-too-slow — returned as 400); ""capacity (shared ClickHouse pool momentarily saturated, returned as 503); "@@ -30,13 +30,6 @@ ENDPOINT_MATERIALIZATION_EVENT_TOTAL = Counter(labelnames=["action", "status"],)-ENDPOINT_CONCURRENCY_REJECTED_TOTAL = Counter(- "posthog_endpoint_concurrency_rejected_total",- "Endpoint executions rejected because the concurrency limit was exceeded",- # team_id is safe cardinality here: only teams actually hitting concurrency limits appear- labelnames=["team_id"],-)-ENDPOINT_RATE_LIMITED_TOTAL = Counter("posthog_endpoint_rate_limited_total","Endpoint run requests refused with a 429. "