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

Log query params in query frontend when error #5005

Merged
merged 5 commits into from
Nov 29, 2022

Conversation

yeya24
Copy link
Collaborator

@yeya24 yeya24 commented Nov 28, 2022

Signed-off-by: Ben Ye benye@amazon.com

What this PR does:

Right now if a query fails at query frontend, no query parameters will be logged so we don't have any visibility about what's the failed query and why it failed.

This pr always log query params to make sure we catch them.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
@yeya24
Copy link
Collaborator Author

yeya24 commented Nov 29, 2022

Since it is a simple change on logging only, I will merge on green.

@yeya24 yeya24 enabled auto-merge (squash) November 29, 2022 02:40
@yeya24 yeya24 merged commit fbdd9dd into cortexproject:master Nov 29, 2022
@yeya24 yeya24 deleted the log-params-error branch November 29, 2022 03:44
t00350320 pushed a commit to t00350320/cortex that referenced this pull request Nov 29, 2022
* log query params in query frontend when error

Signed-off-by: Ben Ye <benye@amazon.com>

* log errors

Signed-off-by: Ben Ye <benye@amazon.com>

* change log level when error

Signed-off-by: Ben Ye <benye@amazon.com>

* fix lint

Signed-off-by: Ben Ye <benye@amazon.com>

* update changelog

Signed-off-by: Ben Ye <benye@amazon.com>

Signed-off-by: Ben Ye <benye@amazon.com>
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.

None yet

3 participants