[TraceQL] add support for event attribute query#3748
Merged
ie-pham merged 22 commits intografana:mainfrom Jun 28, 2024
Merged
Conversation
13c9df6 to
e761187
Compare
Contributor
knylander-grafana
left a comment
There was a problem hiding this comment.
Thank you for updating the doc! Approving the doc changes.
stoewer
reviewed
Jun 26, 2024
Contributor
stoewer
left a comment
There was a problem hiding this comment.
Great PR! I tested the event attributes locally and everything worked as expected.
I left a couple of comments for improvements
3 tasks
stoewer
reviewed
Jun 27, 2024
stoewer
reviewed
Jun 27, 2024
stoewer
reviewed
Jun 27, 2024
stoewer
approved these changes
Jun 27, 2024
joe-elliott
reviewed
Jun 27, 2024
Collaborator
joe-elliott
left a comment
There was a problem hiding this comment.
fantastic work here. i think it's close, but i want to make an honest effort at this perf regression before merging.
I would like to see tests added to ./tempodb/tempodb_search_test.go:TestSearchCompleteBlock
And I would expect local manual testing using the local docker-compose to confirm things work as expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does: Add support for querying event attributes. In order to make this work, row numbers have been extended from having a length of 6 to a length of 8.
TLDR: 8 levels is faster than 7 levels
Final Benchmark
--- story time if you're interested in the investigation ---
When adding just one extra level (7 levels), the performance decreased dramatically and I originally thought it was just due to the memory allocation of the RowNumber going from length of 6 to length of 7.
But then, curiosity got me thinking... What if we drop to 5 levels? Would that increase our performance? (it didn't)
Then @stoewer suggested trying 8 levels...
Welp.
I also modified the truncate function to make it slightly more efficient
And the full comparison (8levels-fast = new truncate function)
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]