From 9f2b7e7ae2034113f77ad17e7802c134760eb526 Mon Sep 17 00:00:00 2001 From: Mihir Khambhati <39031445+itsmihir@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:41:36 +0530 Subject: [PATCH] fix: silent ignore of 4xx errors from reporting (#5253) --- enterprise/reporting/reporting.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/enterprise/reporting/reporting.go b/enterprise/reporting/reporting.go index e35febcca4..80048b10d8 100644 --- a/enterprise/reporting/reporting.go +++ b/enterprise/reporting/reporting.go @@ -583,11 +583,7 @@ func (r *DefaultReporter) sendMetric(ctx context.Context, netClient *http.Client } func isMetricPosted(status int) bool { - if status == 429 { - return false - } - - return status >= 200 && status < 500 + return status >= 200 && status < 300 } func getPIIColumnsToExclude() []string {