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

Function NewGRPCCollector

modules/frontend/pipeline/collector_grpc.go:22–30  ·  view source on GitHub ↗
(next AsyncRoundTripper[combiner.PipelineResponse], consumers int, maxSegmentSize int, combiner combiner.GRPCCombiner[T], send func(T) error)

Source from the content-addressed store, hash-verified

20}
21
22func NewGRPCCollector[T combiner.TResponse](next AsyncRoundTripper[combiner.PipelineResponse], consumers int, maxSegmentSize int, combiner combiner.GRPCCombiner[T], send func(T) error) *GRPCCollector[T] {
23 return &GRPCCollector[T]{
24 next: next,
25 combiner: combiner,
26 consumers: consumers,
27 maxSegmentSize: maxSegmentSize,
28 send: send,
29 }
30}
31
32// RoundTrip implements the http.RoundTripper interface
33func (c GRPCCollector[T]) RoundTrip(req *http.Request) error {

Calls

no outgoing calls

Tested by 1