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

Function initHTTPCombiner

modules/frontend/combiner/common.go:59–62  ·  view source on GitHub ↗

Init an HTTP combiner with default values. The marshaling format dictates how the response will be marshaled, including the Content-type header.

(c *genericCombiner[T], marshalingFormat api.MarshallingFormat)

Source from the content-addressed store, hash-verified

57
58// Init an HTTP combiner with default values. The marshaling format dictates how the response will be marshaled, including the Content-type header.
59func initHTTPCombiner[T TResponse](c *genericCombiner[T], marshalingFormat api.MarshallingFormat) {
60 c.httpStatusCode = 200
61 c.httpMarshalingFormat = marshalingFormat
62}
63
64// AddResponse is used to add a http response to the combiner.
65func (c *genericCombiner[T]) AddResponse(r PipelineResponse) error {

Callers 8

newTestCombinerFunction · 0.85
NewSearchFunction · 0.85
NewSearchTagsFunction · 0.85
NewSearchTagsV2Function · 0.85
NewSearchTagValuesFunction · 0.85
NewSearchTagValuesV2Function · 0.85
NewQueryRangeFunction · 0.85
NewTraceByIDV2Function · 0.85

Calls

no outgoing calls

Tested by 1

newTestCombinerFunction · 0.68