diff --git a/docs/configuration/config-file-reference.md b/docs/configuration/config-file-reference.md index 49c244f87a..b5ab659830 100644 --- a/docs/configuration/config-file-reference.md +++ b/docs/configuration/config-file-reference.md @@ -5061,10 +5061,10 @@ otel: ### `QueryAttribute` ```yaml -# Regex that the query string should match. If not set, it won't be checked.' +# Regex that the query string should match. If not set, it won't be checked. [regex: | default = ""] -# Time window that the query should be within. If not set, it won't be checked.' +# Time window that the query should be within. If not set, it won't be checked. time_window: # Start of the time window that the query should be within. If set to 0, it # won't be checked. diff --git a/pkg/util/validation/limits.go b/pkg/util/validation/limits.go index 9531ee8555..a10e3f1f78 100644 --- a/pkg/util/validation/limits.go +++ b/pkg/util/validation/limits.go @@ -63,8 +63,8 @@ type PriorityDef struct { } type QueryAttribute struct { - Regex string `yaml:"regex" json:"regex" doc:"nocli|description=Regex that the query string should match. If not set, it won't be checked.'"` - TimeWindow TimeWindow `yaml:"time_window" json:"time_window" doc:"nocli|description=Time window that the query should be within. If not set, it won't be checked.'"` + Regex string `yaml:"regex" json:"regex" doc:"nocli|description=Regex that the query string should match. If not set, it won't be checked."` + TimeWindow TimeWindow `yaml:"time_window" json:"time_window" doc:"nocli|description=Time window that the query should be within. If not set, it won't be checked."` CompiledRegex *regexp.Regexp }