This change in #10956 broke the status code reporting in the metrics.go line from our queriers. In the case where error was nil, it produces a 500. Previously, when error was nil, it produced a 200.
This PR fixes that behavior, reporting a 200 status unless there is a problem.
What this PR does / why we need it:
This change in #10956 broke the status code reporting in the
metrics.go
line from our queriers. In the case where error wasnil
, it produces a 500. Previously, when error was nil, it produced a 200.This PR fixes that behavior, reporting a 200 status unless there is a problem.