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

Method Fetch

tempodb/tempodb.go:535–543  ·  view source on GitHub ↗

Fetch only uses rw.r which has caching enabled

(ctx context.Context, meta *backend.BlockMeta, req traceql.FetchSpansRequest, opts common.SearchOptions)

Source from the content-addressed store, hash-verified

533
534// Fetch only uses rw.r which has caching enabled
535func (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
545func (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)

Callers

nothing calls this directly

Calls 3

OpenBlockFunction · 0.92
ApplyToOptionsMethod · 0.80
FetchMethod · 0.65

Tested by

no test coverage detected