-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Tempo: Highlight errors in TraceQL query #74697
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.
Great improvement! However I would like us to work on this a little more before merging, let me know what you think!
Sure, let's improve it a little more. Currently this feature works as in the LogQL editor, but we can definitely make it better, I'll work on it! |
@adrapereira let me know if you think we are going in the right direction. We can then improve the details, such as changing a little bit the error messages—e.g., instead of "Invalid comparison operator", have something like "Expected comparison operator, received X instead". |
* main: Docs: Fix link to developing plugins (#75816) Fix: visualization vs visualisation in feature description (#75895) Chore: Bump storybook 7.4.5 (#75652) Correlations: Add an editor in Explore (#73315) i18n: dashboard settings (#75854) Tempo: Highlight errors in TraceQL query (#74697) Datasources: Filter plugin errors to only show datasource plugins (#74339) Fix sticky header issue (#75710) Transformations: Extended support for variables in filter by name (#75734) Alerting: Fix being redirected to list view when clicking Save rule button (#75510) Tracing: Standardize on otel tracing (#75528) Fix developer links and newly discovered spelling errors (#75875) i18n: Mark up GeneralSettings for translations (#75827) DockedMegaMenu: Refactor and rename to simplify (#75872) sql: numeric inputs: use it's own simple implementation (#74904)
As of now, when a TraceQL query contains syntax errors, it just fail when submitted to Tempo. No feedback is given to the user before submitting it, and the error message returned by Tempo is not particularly user friendly.
To help users understand why their query failed, we want to highlight the parts of the query that might be wrong due to syntax errors. This should simplify the user experience and the usage of TraceQL.
Example of outcome after changes:
Fixes #74264