Skip to content

Commit

Permalink
use search options
Browse files Browse the repository at this point in the history
  • Loading branch information
javiermolinar committed Aug 16, 2024
1 parent a769d7a commit cb35a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/querier/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ func (q *Querier) internalTagValuesSearchBlockV2(ctx context.Context, req *tempo

query := traceql.ExtractMatchers(req.SearchReq.Query)
if traceql.IsEmptyQuery(query) {
return q.store.SearchTagValuesV2(ctx, meta, req.SearchReq, common.DefaultSearchOptions())
return q.store.SearchTagValuesV2(ctx, meta, req.SearchReq, opts)
}

tag, err := traceql.ParseIdentifier(req.SearchReq.TagName)
Expand All @@ -1040,7 +1040,7 @@ func (q *Querier) internalTagValuesSearchBlockV2(ctx context.Context, req *tempo
}

fetcher := traceql.NewTagValuesFetcherWrapper(func(ctx context.Context, req traceql.FetchTagValuesRequest, cb traceql.FetchTagValuesCallback) error {
return q.store.FetchTagValues(ctx, meta, req, cb, common.DefaultSearchOptions())
return q.store.FetchTagValues(ctx, meta, req, cb, opts)
})

valueCollector := collector.NewDistinctValue(q.limits.MaxBytesPerTagValuesQuery(tenantID), func(v tempopb.TagValue) int { return len(v.Type) + len(v.Value) })
Expand Down

0 comments on commit cb35a07

Please sign in to comment.