Skip to content

Commit

Permalink
fixes loki query to include child workflows (#3279)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei authored Feb 18, 2025
1 parent 864016e commit c85a2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/services/mgmt/v1alpha1/job-service/runs.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ func logLevelToString(loglevel mgmtv1alpha1.LogLevel) string {

func buildLokiQuery(lokiLables string, keep []string, workflowId string, loglevels []string) string {
query := fmt.Sprintf("{%s} | json", lokiLables)
query = fmt.Sprintf("%s | WorkflowID=%q", query, workflowId)
query = fmt.Sprintf("%s | JobRunId=%q", query, workflowId)

if len(loglevels) > 0 {
query = fmt.Sprintf("%s | level=~%q", query, strings.Join(loglevels, "|"))
Expand Down

0 comments on commit c85a2c2

Please sign in to comment.