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

Method MaxRegexPatternLength

pkg/util/validation/limits.go:1149–1151  ·  view source on GitHub ↗

MaxRegexPatternLength returns the maximum length of an unoptimized regex pattern. This is only used in Ingester.

(userID string)

Source from the content-addressed store, hash-verified

1147// MaxRegexPatternLength returns the maximum length of an unoptimized regex pattern.
1148// This is only used in Ingester.
1149func (o *Overrides) MaxRegexPatternLength(userID string) int {
1150 return o.GetOverridesForUser(userID).MaxRegexPatternLength
1151}
1152
1153// MaxLabelCardinalityForUnoptimizedRegex returns the maximum cardinality for a label with an unoptimized regex matcher.
1154// This is only used in Ingester.

Callers 1

Calls 1

GetOverridesForUserMethod · 0.95

Tested by

no test coverage detected