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

Method setupThanosTracing

pkg/cortex/cortex.go:403–406  ·  view source on GitHub ↗

setupThanosTracing appends a gRPC middleware used to inject our tracer into the custom context used by Thanos, in order to get Thanos spans correctly attached to our traces.

()

Source from the content-addressed store, hash-verified

401// setupThanosTracing appends a gRPC middleware used to inject our tracer into the custom
402// context used by Thanos, in order to get Thanos spans correctly attached to our traces.
403func (t *Cortex) setupThanosTracing() {
404 t.Cfg.Server.GRPCMiddleware = append(t.Cfg.Server.GRPCMiddleware, ThanosTracerUnaryInterceptor)
405 t.Cfg.Server.GRPCStreamMiddleware = append(t.Cfg.Server.GRPCStreamMiddleware, ThanosTracerStreamInterceptor)
406}
407
408// setupGRPCHeaderForwarding appends a gRPC middleware used to enable the propagation of
409// HTTP Headers through child gRPC calls

Callers 1

NewFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected