Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show 200 status code for successful queries #14175

Closed
wants to merge 2 commits into from

Conversation

trevorwhitney
Copy link
Collaborator

@trevorwhitney trevorwhitney commented Sep 18, 2024

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

@trevorwhitney trevorwhitney requested a review from a team as a code owner September 18, 2024 19:42
@@ -18,9 +18,6 @@ common:
kvstore:
store: inmemory

ingester_rf1:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this appears to have been removed from the code, but was not removed from the config? I got an error on main when trying to use this config.

Copy link
Contributor

@ashwanthgoli ashwanthgoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

i opened up a similar pr a while back, but failed to merge it. I'll close it once this is merged.

@trevorwhitney
Copy link
Collaborator Author

@ashwanthgoli I like yours better, closing in favor of #12102

@trevorwhitney
Copy link
Collaborator Author

nevermind, we still need it in engine.go

@trevorwhitney trevorwhitney reopened this Sep 19, 2024
@trevorwhitney
Copy link
Collaborator Author

nevermind again, I can't read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants