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

Method FetchTagValues

tempodb/tempodb.go:555–563  ·  view source on GitHub ↗
(ctx context.Context, meta *backend.BlockMeta, req traceql.FetchTagValuesRequest, cb traceql.FetchTagValuesCallback, mcb common.MetricsCallback, opts common.SearchOptions)

Source from the content-addressed store, hash-verified

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)
557 if err != nil {
558 return err
559 }
560
561 rw.cfg.Search.ApplyToOptions(&opts)
562 return block.FetchTagValues(ctx, req, cb, mcb, opts)
563}
564
565func (rw *readerWriter) FetchTagNames(ctx context.Context, meta *backend.BlockMeta, req traceql.FetchTagsRequest, cb traceql.FetchTagsCallback, mcb common.MetricsCallback, opts common.SearchOptions) error {
566 block, err := encoding.OpenBlock(meta, rw.r)

Callers

nothing calls this directly

Calls 3

OpenBlockFunction · 0.92
ApplyToOptionsMethod · 0.80
FetchTagValuesMethod · 0.65

Tested by

no test coverage detected