Skip to content

Commit

Permalink
feat: add search span scope in the list view tab to add the scope at …
Browse files Browse the repository at this point in the history
…per query level
  • Loading branch information
eKuG committed Jan 20, 2025
1 parent 45cd4b7 commit bdaaabc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/query-service/app/traces/v4/query_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,15 @@ func buildSpanScopeQuery(fs *v3.FilterSet) (string, error) {

if keyName == constants.SpanSearchScopeRoot {
query = "parent_span_id = '' "
return query, nil
} else if keyName == constants.SpanSearchScopeEntryPoint {
query = "((name, `resource_string_service$$name`) IN ( SELECT DISTINCT name, serviceName from " + constants.SIGNOZ_TRACE_DBNAME + "." + constants.SIGNOZ_TOP_LEVEL_OPERATIONS_TABLENAME + " )) "
return query, nil
} else {
return "", fmt.Errorf("invalid scope item type: %s", item.Key.Type)
}
}
return query, nil
return "", nil
}

func buildTracesQuery(start, end, step int64, mq *v3.BuilderQuery, panelType v3.PanelType, options v3.QBOptions) (string, error) {
Expand Down

0 comments on commit bdaaabc

Please # to comment.