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

Attach consistency check debug logs to trace spans #9213

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Sep 6, 2024

What this PR does

This PR improves the logging done during consistency checks for queries to store-gateways.

Specifically, it attaches the log messages emitted by BlocksConsistency.NewTracker to the active trace span as events, so these can be viewed alongside the other related events emitted by blocksStoreQuerier.queryWithConsistencyCheck.

Which issue(s) this PR fixes or relates to

(none)

Checklist

  • Tests updated.
  • [n/a] Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [n/a] about-versioning.md updated with experimental features.

@charleskorn charleskorn marked this pull request as ready for review September 6, 2024 03:06
@charleskorn charleskorn requested a review from a team as a code owner September 6, 2024 03:06
Copy link
Member

@francoposa francoposa left a comment

Choose a reason for hiding this comment

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

I <3 high-fidelity traces

@charleskorn charleskorn merged commit 2bc501a into main Sep 6, 2024
31 checks passed
@charleskorn charleskorn deleted the charleskorn/consistency-check-logging branch September 6, 2024 04:33
@grafanabot
Copy link
Contributor

The backport to r306 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-9213-to-r306 origin/r306
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 2bc501a3182e4d33c58a63447fb24ea98f7368ef
# Push it to GitHub
git push --set-upstream origin backport-9213-to-r306
git switch main
# Remove the local backport branch
git branch -D backport-9213-to-r306

Then, create a pull request where the base branch is r306 and the compare/head branch is backport-9213-to-r306.

charleskorn added a commit that referenced this pull request Sep 6, 2024
* Attach consistency check debug logs to trace spans

* Add changelog entry

(cherry picked from commit 2bc501a)

# Conflicts:
#	CHANGELOG.md
@charleskorn charleskorn mentioned this pull request Sep 6, 2024
1 task
charleskorn added a commit that referenced this pull request Sep 6, 2024
* Attach consistency check debug logs to trace spans

* Add changelog entry

(cherry picked from commit 2bc501a)

# Conflicts:
#	CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants