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

Put query stats logging under s.debugLogging #7471

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Jun 19, 2024

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

The log line being changed in the PR uses fmt.Sprintf("%+v", stats) which is quite expensive and show up in our CPU profile.
We never enable debug level logging but it still evaluates fmt.Sprintf.

Put the log line under debugLogging. I think this makes no difference for Thanos users because when log level is set to debug, Store Gateway will set debugLogging to true as well.

Verification

Signed-off-by: Ben Ye <benye@amazon.com>
@yeya24 yeya24 merged commit 0272269 into thanos-io:main Jun 19, 2024
19 of 20 checks passed
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

2 participants