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

Function NewNoopMiddleware

modules/frontend/pipeline/async_handler_noop.go:8–14  ·  view source on GitHub ↗

NewNoopMiddleware returns a middleware that is a passthrough only

()

Source from the content-addressed store, hash-verified

6
7// NewNoopMiddleware returns a middleware that is a passthrough only
8func NewNoopMiddleware() AsyncMiddleware[combiner.PipelineResponse] {
9 return AsyncMiddlewareFunc[combiner.PipelineResponse](func(next AsyncRoundTripper[combiner.PipelineResponse]) AsyncRoundTripper[combiner.PipelineResponse] {
10 return AsyncRoundTripperFunc[combiner.PipelineResponse](func(req Request) (Responses[combiner.PipelineResponse], error) {
11 return next.RoundTrip(req)
12 })
13 })
14}

Callers 1

multiTenantMiddlewareFunction · 0.92

Calls 1

RoundTripMethod · 0.65

Tested by

no test coverage detected