QueryRange implements tempopb.MetricsServer
(ctx context.Context, req *tempopb.QueryRangeRequest)
| 891 | |
| 892 | // QueryRange implements tempopb.MetricsServer |
| 893 | func (s *LiveStore) QueryRange(ctx context.Context, req *tempopb.QueryRangeRequest) (*tempopb.QueryRangeResponse, error) { |
| 894 | return withInstance(ctx, s, func(inst *instance) (*tempopb.QueryRangeResponse, error) { |
| 895 | if s.isLagged(int64(req.End)) { // end param is already nanos, no need to convert |
| 896 | metricLaggedRequests.WithLabelValues("/tempopb.Metrics/QueryRange").Inc() |
| 897 | if s.cfg.FailOnHighLag { |
| 898 | return nil, errLagged |
| 899 | } |
| 900 | } |
| 901 | return inst.QueryRange(ctx, req) |
| 902 | }) |
| 903 | } |
| 904 | |
| 905 | var errLagged = errors.New("cannot guarantee complete results") |
| 906 |
nothing calls this directly
no test coverage detected