MCPcopy Create free account
hub / github.com/cortexproject/cortex / setupGRPCHeaderForwarding

Method setupGRPCHeaderForwarding

pkg/cortex/cortex.go:410–413  ·  view source on GitHub ↗

setupGRPCHeaderForwarding appends a gRPC middleware used to enable the propagation of HTTP Headers through child gRPC calls

()

Source from the content-addressed store, hash-verified

408// setupGRPCHeaderForwarding appends a gRPC middleware used to enable the propagation of
409// HTTP Headers through child gRPC calls
410func (t *Cortex) setupGRPCHeaderForwarding() {
411 t.Cfg.Server.GRPCMiddleware = append(t.Cfg.Server.GRPCMiddleware, grpcutil.HTTPHeaderPropagationServerInterceptor)
412 t.Cfg.Server.GRPCStreamMiddleware = append(t.Cfg.Server.GRPCStreamMiddleware, grpcutil.HTTPHeaderPropagationStreamServerInterceptor)
413}
414
415func (t *Cortex) setupRequestSigning() {
416 if t.Cfg.Distributor.SignWriteRequestsEnabled {

Callers 1

NewFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected