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

Better error messaging for unresolved metrics errors #6084

Closed
evanh opened this issue Jul 2, 2024 · 1 comment · Fixed by #6244
Closed

Better error messaging for unresolved metrics errors #6084

evanh opened this issue Jul 2, 2024 · 1 comment · Fixed by #6244

Comments

@evanh
Copy link
Member

evanh commented Jul 2, 2024

When a column isn't resolved properly, the query returns an ambiguous error message.

validation failed for entity generic_metrics_distributions: Entity generic_metrics_distributions: Query column 'wrapper_type' does not exist

This should return a more obvious "tag key not resolved error" or something along those lines.

@onkar
Copy link
Member

onkar commented Aug 27, 2024

@vgrozdanic the error is coming from here:

error_message = (
Do you have any preference on the error message text? I am not following the "tag key not resolved error" message in the issue description and would appreciate some help in wording. Thanks.

onkar added a commit that referenced this issue Aug 27, 2024
When a column/columns is/are not resolved, the query returns ambiguous
error message like:
`validation failed for entity generic_metrics_distributions: Entity
generic_metrics_distributions: Query column 'wrapper_type' does not
exist`.

This needs to be fixed to show a more readable message:
`Validation failed for entity generic_metrics_distributions: Tag keys
(wrapper_type) not resolved`

Closes #6084

**Testing done:**
Fixed unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants