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.
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
[WIP][v2][storage] Create v2 query service to operate on otlp data model #6343
base: main
Are you sure you want to change the base?
[WIP][v2][storage] Create v2 query service to operate on otlp data model #6343
Changes from 8 commits
ad0de07
24278bb
41f1d51
a33ab6c
ffad629
1d721ac
a6df503
60a875a
d31a5e5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 65 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L54-L65
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.
Check warning on line 90 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L73-L90
Check warning on line 94 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L94
Check warning on line 101 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L96-L101
Check warning on line 105 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L103-L105
Check warning on line 112 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L111-L112
Check warning on line 120 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L119-L120
Check warning on line 125 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L124-L125
Check warning on line 145 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L129-L145
Check warning on line 147 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L147
Check warning on line 149 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L149
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.
you cannot assume here that
trace
is a full trace, you need to clump consecutive chunks if they are for the same trace ID. We can implement a helper function for that that will takeSeq[[]ptrace.Traces]
and returnSeq[ptrace.Traces]
where each item is a full trace. Similar to what I was suggesting in https://github.com/jaegertracing/jaeger/pull/6388/files#r1894703201Check warning on line 158 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L153-L158
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.
@yurishkuro Did I understand correctly in that this is what we wanted here? Or did you mean that we should change the underlying adjusters themselves to work on Seq?
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.
yes, you understood correctly. However, because adjusting needs to re-arrange the data I think this func should return
Seq[ptrace.Traces]
where each item is fully adjusted trace.Check warning on line 167 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L163-L167
Check warning on line 174 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L171-L174
Check warning on line 179 in cmd/query/app/querysvc/query_service_v2.go
Codecov / codecov/patch
cmd/query/app/querysvc/query_service_v2.go#L178-L179