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

Method SearchRecent

modules/livestore/live_store.go:847–857  ·  modules/livestore/live_store.go::LiveStore.SearchRecent

SearchRecent implements tempopb.Querier

(ctx context.Context, req *tempopb.SearchRequest)

Source from the content-addressed store, hash-verified

845
846// SearchRecent implements tempopb.Querier
847func (s *LiveStore) SearchRecent(ctx context.Context, req *tempopb.SearchRequest) (*tempopb.SearchResponse, error) {
848 return withInstance(ctx, s, func(inst *instance) (*tempopb.SearchResponse, error) {
849 if s.isLagged(int64(req.End) * 1e9) { // convert seconds to nanoseconds
850 metricLaggedRequests.WithLabelValues("/tempopb.Querier/SearchRecent").Inc()
851 if s.cfg.FailOnHighLag {
852 return nil, errLagged
853 }
854 }
855 return inst.Search(ctx, req)
856 })
857}
858
859// SearchBlock implements tempopb.Querier
860func (s *LiveStore) SearchBlock(_ context.Context, _ *tempopb.SearchBlockRequest) (*tempopb.SearchResponse, error) {

Callers

nothing calls this directly

Calls 4

isLaggedMethod · 0.95
withInstanceFunction · 0.85
IncMethod · 0.65
SearchMethod · 0.65

Tested by

no test coverage detected