Skip to content

Commit

Permalink
feat(detected-labels): remove cardinality filter (#13652)
Browse files Browse the repository at this point in the history
  • Loading branch information
svennergr committed Jul 24, 2024
1 parent ef03476 commit 4f534d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/querier/queryrange/roundtrip.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,7 @@ func NewDetectedLabelsCardinalityFilter(rt queryrangebase.Handler) queryrangebas
var result []*logproto.DetectedLabel

for _, dl := range resp.Response.DetectedLabels {
if dl.Cardinality > 1 && dl.Cardinality < 50 {
result = append(result, &logproto.DetectedLabel{Label: dl.Label, Cardinality: dl.Cardinality})
}
result = append(result, &logproto.DetectedLabel{Label: dl.Label, Cardinality: dl.Cardinality})
}
return &DetectedLabelsResponse{
Response: &logproto.DetectedLabelsResponse{DetectedLabels: result},
Expand Down

0 comments on commit 4f534d7

Please sign in to comment.