Skip to content

Stats: search query latency data types

Administrator requested to merge rvt/search-latency-types into master

Created by: rvantonder

This is just the (proposed) data types of the search query latency to add. I feel like we can bundle these stats with the description for code intel hovers. @efritz question: are the latencies for hovers, etc. global latencies, or per user? For search we can use either, just want to understand what the choice and rationale is for code intel.

I'm going with the

type SearchEventLatencies struct {
	P50 float64
	P90 float64
	P99 float64
}

to use the PercentilesPerPeriod utility function consistently (as opposed to just recording P99).

@tsenart I propose we break these down by category (file, repo,...) or it is going to be very hard to see where to prioritize effort for improving perf.

Merge request reports

Loading