( fetchSpanSetsFn func(ctx context.Context, req FetchSpansRequest) (FetchSpansResponse, error), fetchSpansFn func(ctx context.Context, req FetchSpansRequest) (FetchSpansOnlyResponse, error), )
| 338 | } |
| 339 | |
| 340 | func 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 | |
| 347 | func (s SpansetFetcherWrapper) Fetch(ctx context.Context, request FetchSpansRequest) (FetchSpansResponse, error) { |
| 348 | return s.fetchSpansetsFn(ctx, request) |
no outgoing calls