Skip to content

Commit

Permalink
Fix trailing comma issue in logs lib when filteringSelector is ""
Browse files Browse the repository at this point in the history
  • Loading branch information
v-zhuravlev committed Dec 11, 2024
1 parent b7b6b37 commit 6b10482
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions logs-lib/logs/variables.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ function(
+ [self.regex_search],

queriesSelector:
'%s,%s' % [
filterSelector,
utils.labelsToPromQLSelector(labels),
],
std.join(
',',
std.filter(function(x) std.length(x) > 0, [
filterSelector,
utils.labelsToPromQLSelector(labels),
])
),
}

0 comments on commit 6b10482

Please sign in to comment.