Skip to content

Conversation

@narqo
Copy link
Contributor

@narqo narqo commented Jan 15, 2026

What this PR does

Following #13942

The PR fixes the bucket index discovery logging. In the previous one, I've missed that the fields added to the With are only applied to the fallback logger. So we don't see these fields in practice 🤦

I've noticed this only now because in one of the cells, where the changes were deployed we do see quite a fair bit of these warnings:

Screenshot 2026-01-15 at 18 05 53

Which issue(s) this PR fixes or relates to

Relates to https://github.com/grafana/mimir-squad/issues/3373

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]. If changelog entry is not needed, please add the changelog-not-needed label to the PR.
  • about-versioning.md updated with experimental features.

@narqo narqo requested a review from a team as a code owner January 15, 2026 17:07
@narqo narqo added the changelog-not-needed PRs that don't need a CHANGELOG.md entry label Jan 15, 2026
@narqo narqo changed the title storegateway: fix bucket index discover logging storegateway: fix bucket index discovery logging Jan 15, 2026
@narqo narqo merged commit b268f75 into main Jan 16, 2026
64 of 65 checks passed
@narqo narqo deleted the vldmr/bucket-index-version-discovery branch January 16, 2026 09:00
mimir-github-bot bot pushed a commit that referenced this pull request Jan 16, 2026
#### What this PR does

Following #13942

The PR fixes the bucket index discovery logging. In the previous one,
I've missed that the fields added to the `With` are only applied to the
fallback logger. So we don't see these fields in practice 🤦

I've noticed this only now because in one of the cells, where the
changes were deployed we do see quite a fair bit of these warnings:

<img width="1462" height="225" alt="Screenshot 2026-01-15 at 18 05 53"
src="https://github.com/user-attachments/assets/f84144d4-0f67-4b06-a6b0-b15c23ce3ea0"
/>

#### Which issue(s) this PR fixes or relates to

Relates to https://github.com/grafana/mimir-squad/issues/3373

#### Checklist

- [ ] Tests updated.
- [ ] Documentation added.
- [ ] `CHANGELOG.md` updated - the order of entries should be
`[CHANGE]`, `[FEATURE]`, `[ENHANCEMENT]`, `[BUGFIX]`. If changelog entry
is not needed, please add the `changelog-not-needed` label to the PR.
- [ ]
[`about-versioning.md`](https://github.com/grafana/mimir/blob/main/docs/sources/mimir/configure/about-versioning.md)
updated with experimental features.

Signed-off-by: Vladimir Varankin <[email protected]>
(cherry picked from commit b268f75)
narqo added a commit that referenced this pull request Jan 16, 2026
Backport b268f75 from #14046

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Fixes logging context in bucket index discovery.
> 
> - In `recordBucketIndexDiscoveryDiff` (bucket.go), use span-aware
logger (`spanlogger.FromContext`) as the base for `logger` and call
`level.Warn/Debug` directly, removing redundant `spanlogger.FromContext`
wrapping. This ensures logs carry the request span context and avoids
double-wrapping.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
5f979bf. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Signed-off-by: Vladimir Varankin <[email protected]>
Co-authored-by: Vladimir Varankin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport r377 changelog-not-needed PRs that don't need a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants