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

Function ExtractShardingMatchers

pkg/querysharding/util.go:75–83  ·  view source on GitHub ↗
(matchers []*labels.Matcher)

Source from the content-addressed store, hash-verified

73}
74
75func ExtractShardingMatchers(matchers []*labels.Matcher) ([]*labels.Matcher, *storepb.ShardMatcher, error) {
76 r, shardInfo, err := ExtractShardingInfo(matchers)
77
78 if err != nil {
79 return r, nil, err
80 }
81
82 return r, shardInfo.Matcher(&Buffers), nil
83}
84
85type disableBinaryExpressionAnalyzer struct {
86 analyzer querysharding.Analyzer

Callers 1

queryStreamMethod · 0.92

Calls 1

ExtractShardingInfoFunction · 0.85

Tested by

no test coverage detected