-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: add search span scope in the list view tab to add the scope at per Query level #6810
base: main
Are you sure you want to change the base?
Conversation
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.
❌ Changes requested. Reviewed everything up to 0346e52 in 2 minutes and 1 seconds
More details
- Looked at
77
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. pkg/query-service/model/v3/v3.go:34
- Draft comment:
TheSpanSearchScope
type and its constants are defined in bothpkg/query-service/app/traces/v4/query_builder.go
andpkg/query-service/model/v3/v3.go
. Consider defining them in one place to avoid redundancy. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment suggests there may be code duplication, but I can't verify this since I don't have access to the other file. The rules state that if understanding requires more context or seeing other files, we should delete the comment. Additionally, this seems like a cross-file issue which the rules explicitly say to ignore.
I could be wrong about this being a cross-file issue - maybe having duplicate type definitions is a serious enough problem that it should be flagged regardless. The comment could be helping prevent maintenance issues.
While duplicate type definitions can be problematic, the rules explicitly state to ignore cross-file issues and to delete comments if we need more context from other files to verify them. We must follow these rules.
Delete this comment since it requires seeing another file to verify and involves a cross-file issue, both of which are explicitly against the review rules.
Workflow ID: wflow_KGDrTd6ZZKUanQ1K
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
add tests? |
@ankitnayan tests are added |
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.
❌ Changes requested. Incremental review on 75b4d89 in 1 minute and 7 seconds
More details
- Looked at
45
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. pkg/query-service/app/traces/v4/query_builder_test.go:552
- Draft comment:
Avoid using thecomponent/index.tsx
file structure approach, as it makes it difficult to debug and find components using global search tools like VS Code. This applies to the entire file. - Reason this comment was not posted:
Comment was not on a valid diff hunk.
Workflow ID: wflow_P6Y4fCrbPHmfsaer
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Summary
Capability we want to introduce with these change:
Related Issues / PR's
#3267
Screenshots
NA
Affected Areas and Manually Tested Areas
The changes to the query range api will be as followed:
spanSearchScope
field will be added in thebuilderQueries
objectThe spanSearch scope will have a default value of
all_spans
but the possible values areentry_point_spans
androot_spans
More information can be found at this document : Notion Document
Important
Adds
spanSearchScope
toBuilderQuery
for query-level span search control, supportingall_spans
,entry_point_spans
, androot_spans
.spanSearchScope
field toBuilderQuery
inv3.go
to specify search scope at query level.all_spans
,entry_point_spans
, androot_spans
as possible values forspanSearchScope
.spanSearchScope
isall_spans
.buildTracesQuery()
inquery_builder.go
to handlespanSearchScope
.spanSearchScope
inquery_builder.go
.SIGNOZ_TOP_LEVEL_OPERATIONS_TABLENAME
toconstants.go
.query_builder_test.go
forspanSearchScope
handling inbuildTracesQuery()
.This description was created by for 75b4d89. It will automatically update as commits are pushed.