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

Method reportResultsToPipeline

modules/frontend/v1/request_batch.go:111–121  ·  view source on GitHub ↗

reportResultsToPipeline sends errors back up the query frontend http pipeline

(responses []*httpgrpc.HTTPResponse)

Source from the content-addressed store, hash-verified

109
110// reportResultsToPipeline sends errors back up the query frontend http pipeline
111func (b *requestBatch) reportResultsToPipeline(responses []*httpgrpc.HTTPResponse) error {
112 if len(responses) != len(b.pipelineRequests) {
113 return fmt.Errorf("incorrect number of responses to pipeline %d != %d", len(responses), len(b.pipelineRequests))
114 }
115
116 for i, r := range b.pipelineRequests {
117 r.response <- httpGRPCResponseToHTTPResponse(responses[i])
118 }
119
120 return nil
121}
122
123func httpGRPCResponseToHTTPResponse(resp *httpgrpc.HTTPResponse) *http.Response {
124 // translate back

Callers 2

reportResponseUpstreamFunction · 0.80

Calls 1

Tested by 1