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

Tempo: Support comments in TraceQL #77646

Merged
merged 2 commits into from
Nov 7, 2023
Merged

Conversation

fabrizio-grafana
Copy link
Contributor

@fabrizio-grafana fabrizio-grafana commented Nov 3, 2023

TraceQL queries natively support line comments (//) and block comments (/* */) thanks to using lezer as parser in Tempo. Thus, we update Grafana to support such comments, avoiding shown errors in the TraceQL editor when using them. Example of outcome:
Screenshot 2023-11-03 at 16 22 58

Fixes #77599

@fabrizio-grafana fabrizio-grafana self-assigned this Nov 3, 2023
@fabrizio-grafana fabrizio-grafana added the no-backport Skip backport of PR label Nov 3, 2023
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.3.x milestone Nov 3, 2023
@fabrizio-grafana fabrizio-grafana marked this pull request as ready for review November 3, 2023 17:38
@fabrizio-grafana fabrizio-grafana requested review from a team as code owners November 3, 2023 17:38
@fabrizio-grafana fabrizio-grafana requested review from jackw and removed request for a team November 3, 2023 17:38
@fabrizio-grafana fabrizio-grafana merged commit f19830b into main Nov 7, 2023
16 checks passed
@fabrizio-grafana fabrizio-grafana deleted the otp/traceql-comments branch November 7, 2023 10:27
@aangelisc aangelisc modified the milestones: 10.3.x, 10.2.3 Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TraceQL: Allow validation of comment syntax without rendering errors
3 participants