Skip to content

Commit

Permalink
fix: silent ignore of 4xx errors from reporting (#5253)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmihir authored Nov 6, 2024
1 parent d7f2a1b commit 9f2b7e7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions enterprise/reporting/reporting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9f2b7e7

Please sign in to comment.