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

distributor: Adorn label value too long message with label name #7740

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented Mar 27, 2024

What this PR does

I propose to include the label name in the err-mimir-label-value-too-long distributor validation error message. The motivation is too make it easy for users to tell which is the offending label when this happens; with increasing OTel adoption, we should expect to see this problem cropping up more often (as resource attribute values can get really long).

Which issue(s) this PR fixes or relates to

Checklist

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

@aknuds1 aknuds1 force-pushed the arve/labelvalue-too-long-msg branch from 8c85cf4 to 9ff6c32 Compare March 27, 2024 13:18
@aknuds1 aknuds1 added enhancement New feature or request component/distributor labels Mar 27, 2024
@aknuds1 aknuds1 marked this pull request as ready for review March 27, 2024 13:21
@aknuds1 aknuds1 requested a review from a team as a code owner March 27, 2024 13:21
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 force-pushed the arve/labelvalue-too-long-msg branch from 9ff6c32 to 1139413 Compare March 27, 2024 13:58
Copy link
Member

@jesusvazquez jesusvazquez left a comment

Choose a reason for hiding this comment

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

LGTM! This will help the user to identify issues and know the actual label that exceeded the limit.

Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

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

LGTM

@aknuds1 aknuds1 merged commit 1a35693 into main Mar 29, 2024
29 checks passed
@aknuds1 aknuds1 deleted the arve/labelvalue-too-long-msg branch March 29, 2024 09:09
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.

3 participants