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

Function NewSpansetFetcherWrapperBoth

pkg/traceql/storage.go:340–345  ·  view source on GitHub ↗
(
	fetchSpanSetsFn func(ctx context.Context, req FetchSpansRequest) (FetchSpansResponse, error),
	fetchSpansFn func(ctx context.Context, req FetchSpansRequest) (FetchSpansOnlyResponse, error),
)

Source from the content-addressed store, hash-verified

338}
339
340func NewSpansetFetcherWrapperBoth(
341 fetchSpanSetsFn func(ctx context.Context, req FetchSpansRequest) (FetchSpansResponse, error),
342 fetchSpansFn func(ctx context.Context, req FetchSpansRequest) (FetchSpansOnlyResponse, error),
343) SpansetFetcher {
344 return SpansetFetcherWrapper{fetchSpanSetsFn, fetchSpansFn}
345}
346
347func (s SpansetFetcherWrapper) Fetch(ctx context.Context, request FetchSpansRequest) (FetchSpansResponse, error) {
348 return s.fetchSpansetsFn(ctx, request)

Callers 9

TestTempoDBQueryRangeFunction · 0.92
TestSamplingErrorFunction · 0.92
SearchMethod · 0.92
queryRangeWALBlockMethod · 0.92
SearchBlockMethod · 0.92
queryBlockMethod · 0.92

Calls

no outgoing calls

Tested by 4

TestTempoDBQueryRangeFunction · 0.74
TestSamplingErrorFunction · 0.74