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

Method RoundTrip

modules/frontend/pipeline/pipeline.go:183–195  ·  view source on GitHub ↗
(req Request)

Source from the content-addressed store, hash-verified

181}
182
183func (b *pipelineBridge) RoundTrip(req Request) (Responses[combiner.PipelineResponse], error) {
184 r, err := b.next.RoundTrip(req)
185 if err != nil {
186 return nil, err
187 }
188
189 // check for request data in the context and echo it back if it exists
190 if val := req.ResponseData(); val != nil {
191 return NewHTTPToAsyncResponseWithRequestData(r, val), nil
192 }
193
194 return NewHTTPToAsyncResponse(r), nil
195}

Callers

nothing calls this directly

Calls 4

NewHTTPToAsyncResponseFunction · 0.85
RoundTripMethod · 0.65
ResponseDataMethod · 0.65

Tested by

no test coverage detected