Fetch only uses rw.r which has caching enabled
(ctx context.Context, meta *backend.BlockMeta, req traceql.FetchSpansRequest, opts common.SearchOptions)
| 533 | |
| 534 | // Fetch only uses rw.r which has caching enabled |
| 535 | func (rw *readerWriter) Fetch(ctx context.Context, meta *backend.BlockMeta, req traceql.FetchSpansRequest, opts common.SearchOptions) (traceql.FetchSpansResponse, error) { |
| 536 | block, err := encoding.OpenBlock(meta, rw.r) |
| 537 | if err != nil { |
| 538 | return traceql.FetchSpansResponse{}, err |
| 539 | } |
| 540 | |
| 541 | rw.cfg.Search.ApplyToOptions(&opts) |
| 542 | return block.Fetch(ctx, req, opts) |
| 543 | } |
| 544 | |
| 545 | func (rw *readerWriter) FetchSpans(ctx context.Context, meta *backend.BlockMeta, req traceql.FetchSpansRequest, opts common.SearchOptions) (traceql.FetchSpansOnlyResponse, error) { |
| 546 | block, err := encoding.OpenBlock(meta, rw.r) |
nothing calls this directly
no test coverage detected