vtselect: return spanSet with corresponding spans#201
Merged
Conversation
Contributor
There was a problem hiding this comment.
6 issues found and verified against the latest diff
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/vtselect/traces/tempo/tempo.qtpl">
<violation number="1" location="app/vtselect/traces/tempo/tempo.qtpl:140">
P2: This drops the existing top-level spanSet compatibility field from search responses. Keep spanSet alongside spanSets with the same rendered data unless the API removal is intentional and coordinated.</violation>
<violation number="2" location="app/vtselect/traces/tempo/tempo.qtpl:154">
P1: Root spans that satisfy the TraceQL filter are dropped from spanSets, so root-only traces report no matched spans. Include the root in the rendered span set when it is the matched span, or append it during summary construction.</violation>
</file>
<file name="app/vtselect/traces/tempo/tempo.qtpl.go">
<violation number="1" location="app/vtselect/traces/tempo/tempo.qtpl.go:406">
P2: `startTimeUnixNano` is now encoded as a JSON number, but Tempo search span-set timestamps are strings. This can break Tempo-compatible clients that unmarshal this field as a string.</violation>
<violation number="2" location="app/vtselect/traces/tempo/tempo.qtpl.go:412">
P2: `durationNanos` is now encoded as a JSON number instead of Tempo's string format. Clients expecting Tempo-compatible search metadata may fail to decode the span set.</violation>
</file>
Tip: instead of fixing issues one by one fix them all with cubic
Re-trigger cubic
… when the value is negative. reset to the max limit if the value exceed the limit.
Contributor
There was a problem hiding this comment.
1 issue found across 3 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
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.
Describe Your Changes
This pull request is another implementation of #174
When searching for the traces, we do it in 2 steps:
trace_idthat match the filter condition.trace_id.This pull request change the 2nd step to "find root span, or spans that match the filter condition for
trace_idin step 1".As a result those spans will be placed to the spanset in response.
Checklist
The following checks are mandatory: