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

Fix parsing of traceql queries longer than 1024 chars #3571

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

joe-elliott
Copy link
Member

What this PR does:
Currently scope parsing goes all the way to the end of the query. This PR makes the routine bail out early if any "non attribute" rune is found.

Which issue(s) this PR fixes:
Fixes #3513

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott joe-elliott changed the title Fix really long static vals Fix really long queries Apr 12, 2024
@joe-elliott joe-elliott changed the title Fix really long queries Fix parsing of traceql queries longer than 1024 chars Apr 12, 2024
@joe-elliott joe-elliott merged commit 0dd31db into grafana:main Apr 15, 2024
14 checks passed
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 this pull request may close these issues.

Search query TraceQL is truncated to 1024 characters
2 participants