Search the given block. This method takes the pre-loaded block meta instead of a block ID, which eliminates a read per search request.
(ctx context.Context, meta *backend.BlockMeta, req *tempopb.SearchRequest, opts common.SearchOptions)
| 420 | // Search the given block. This method takes the pre-loaded block meta instead of a block ID, which |
| 421 | // eliminates a read per search request. |
| 422 | func (rw *readerWriter) Search(ctx context.Context, meta *backend.BlockMeta, req *tempopb.SearchRequest, opts common.SearchOptions) (*tempopb.SearchResponse, error) { |
| 423 | block, err := encoding.OpenBlock(meta, rw.r) |
| 424 | if err != nil { |
| 425 | return nil, err |
| 426 | } |
| 427 | |
| 428 | rw.cfg.Search.ApplyToOptions(&opts) |
| 429 | return block.Search(ctx, req, opts) |
| 430 | } |
| 431 | |
| 432 | func (rw *readerWriter) SearchTags(ctx context.Context, meta *backend.BlockMeta, req *tempopb.SearchTagsBlockRequest, opts common.SearchOptions) (*tempopb.SearchTagsV2Response, error) { |
| 433 | scope := req.SearchReq.Scope |
nothing calls this directly
no test coverage detected