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

Function NewTypedSearch

modules/frontend/combiner/search.go:149–151  ·  view source on GitHub ↗
(limit int, keepMostRecent bool, marshalingFormat api.MarshallingFormat, padTraceIDs bool)

Source from the content-addressed store, hash-verified

147}
148
149func NewTypedSearch(limit int, keepMostRecent bool, marshalingFormat api.MarshallingFormat, padTraceIDs bool) GRPCCombiner[*tempopb.SearchResponse] {
150 return NewSearch(limit, keepMostRecent, marshalingFormat, padTraceIDs).(GRPCCombiner[*tempopb.SearchResponse])
151}
152
153// padTraceIDsInResponse left-pads all trace IDs in the given search metadata to 32 hex characters.
154func padTraceIDsInResponse(traces []*tempopb.TraceSearchMetadata) {

Callers 5

newCombinerFunction · 0.92
testCombinerShardsFunction · 0.85

Calls 1

NewSearchFunction · 0.85

Tested by 4

testCombinerShardsFunction · 0.68