Skip to content

Commit

Permalink
Speedup collection of results from ingesters in the querier (#4100)
Browse files Browse the repository at this point in the history
* Add Generic Collector for collection of things

* push collection down to calls to ingester

* fixup generic collector

* cleanup comments and TODOs

* Update CHANGELOG.md

* match span name with func name

* inline the collection of results in SearchRecent

* remove break goto

* make ScopedDistinctString and DistinctString safe + test
  • Loading branch information
electron0zero authored Sep 25, 2024
1 parent a8d7245 commit 109f8d0
Show file tree
Hide file tree
Showing 7 changed files with 199 additions and 104 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## main / unreleased

* [ENHANCEMENT] Speedup collection of results from ingesters in the querier [#4100](https://github.com/grafana/tempo/pull/4100) (@electron0zero)
* [ENHANCEMENT] Speedup DistinctValue collector and exit early for ingesters [#4104](https://github.com/grafana/tempo/pull/4104) (@electron0zero)
* [ENHANCEMENT] Add disk caching in ingester SearchTagValuesV2 for completed blocks [#4069](https://github.com/grafana/tempo/pull/4069) (@electron0zero)
* [BUGFIX] Replace hedged requests roundtrips total with a counter. [#4063](https://github.com/grafana/tempo/pull/4063) [#4078](https://github.com/grafana/tempo/pull/4078) (@galalen)
Expand Down
2 changes: 1 addition & 1 deletion modules/querier/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func (q *Querier) SearchTagValuesV2Handler(w http.ResponseWriter, r *http.Reques
ctx, cancel := context.WithDeadline(r.Context(), time.Now().Add(q.cfg.Search.QueryTimeout))
defer cancel()

ctx, span := tracer.Start(ctx, "Querier.SearchTagValuesHandler")
ctx, span := tracer.Start(ctx, "Querier.SearchTagValuesV2Handler")
defer span.End()

var resp *tempopb.SearchTagValuesV2Response
Expand Down
Loading

0 comments on commit 109f8d0

Please sign in to comment.