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

Function RequestFromRuler

pkg/util/requestmeta/source.go:21–27  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

19}
20
21func RequestFromRuler(ctx context.Context) bool {
22 metadataMap := MapFromContext(ctx)
23 if metadataMap == nil {
24 return false
25 }
26 return metadataMap[RequestSourceKey] == SourceRuler
27}

Callers 2

GetSourceFunction · 0.92
EncodeRequestMethod · 0.92

Calls 1

MapFromContextFunction · 0.85

Tested by

no test coverage detected