MCPcopy
hub / github.com/grafana/tempo / QueryRange

Method QueryRange

modules/querier/querier_query_range.go:17–23  ·  view source on GitHub ↗
(ctx context.Context, req *tempopb.QueryRangeRequest)

Source from the content-addressed store, hash-verified

15)
16
17func (q *Querier) QueryRange(ctx context.Context, req *tempopb.QueryRangeRequest) (*tempopb.QueryRangeResponse, error) {
18 if req.QueryMode == QueryModeRecent {
19 return q.queryRangeRecent(ctx, req)
20 }
21
22 return q.queryBlock(ctx, req)
23}
24
25func (q *Querier) queryRangeRecent(ctx context.Context, req *tempopb.QueryRangeRequest) (*tempopb.QueryRangeResponse, error) {
26 // correct max series limit logic should've been set by the query-frontend sharder

Callers 1

QueryRangeHandlerMethod · 0.95

Calls 2

queryRangeRecentMethod · 0.95
queryBlockMethod · 0.95

Tested by

no test coverage detected