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

Method FetchSpans

tempodb/tempodb.go:545–553  ·  view source on GitHub ↗
(ctx context.Context, meta *backend.BlockMeta, req traceql.FetchSpansRequest, opts common.SearchOptions)

Source from the content-addressed store, hash-verified

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)
547 if err != nil {
548 return traceql.FetchSpansOnlyResponse{}, err
549 }
550
551 rw.cfg.Search.ApplyToOptions(&opts)
552 return block.FetchSpans(ctx, req, opts)
553}
554
555func (rw *readerWriter) FetchTagValues(ctx context.Context, meta *backend.BlockMeta, req traceql.FetchTagValuesRequest, cb traceql.FetchTagValuesCallback, mcb common.MetricsCallback, opts common.SearchOptions) error {
556 block, err := encoding.OpenBlock(meta, rw.r)

Callers

nothing calls this directly

Calls 3

OpenBlockFunction · 0.92
ApplyToOptionsMethod · 0.80
FetchSpansMethod · 0.65

Tested by

no test coverage detected