-
Notifications
You must be signed in to change notification settings - Fork 15
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
Logs Panel: Display error message when logs fail to load #1079
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely. I will also look for a couple other possible error responses to map to a readable message. Feel free to suggest if you remember any in particular. |
e727e4e
to
b312ef5
Compare
@svennergr What do you think about collapsing Volume on error? |
Is there a way to make the make a suggestion to recover from this error without clearing all? "Invalid filter parameters" is pretty cryptic. I'm unsure if this is an issue with the line filter? or if it's returning an empty set because the line filter was invalid. In the first case. a simple error message "there are not logs that match your filter, clear all" In the second case, Also link to the some documentation for creating a Regex expression for Loki would be helpful. |
@zizzpudding Loki doesn't really tell us what part of the query failed, it just tells us that it was unable to parse the query. Also this PR is only addressing when we get an error back from Loki, not when there are no results. We can follow up on client-side regex errors in line filters on this issue: Line filter validation. Updating the docs is good call out, I'll add a line-item to that epic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, the only unexpected thing is that when I have the volume collapsed before running into an error, it gets uncollapsed after fixing the error.
Still a lot we can do here, but still worth merging
You read my mind. I was just about to do that.
Agree. This is just the initial step to better handle and surface errors to the user. |
Co-authored-by: Sven Grossmann <[email protected]>
c03150d
to
2ed72c4
Compare
This PR subscribes to the logs query and displays an error component when the log query fails, with the objective of improving how we surface errors to the user, making it clear that the query failed and providing a escape hatch to clear all filters.
Before:
After: