prometheus/util
George Krajcsovits fdaafdb041
tsdb: check for context cancel before regex matching postings (#14096)
* tsdb: check for context cancel before regex matching postings

Regex matching can be heavy if the regex takes a lot of cycles to
evaluate and we can get stuck evaluating postings for a long time
without this fix. The constant checkContextEveryNIterations=100
may be changed later.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-05-15 06:26:19 +02:00
..
almost refactor: extract almost.Equal() to new package 2024-05-08 13:42:10 +01:00
annotations remove uneccessary space 2024-02-26 14:02:06 +00:00
documentcli promtool docs: write flags between backtits in help 2023-07-15 22:32:59 +02:00
fmtutil golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
gate Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
httputil golangci-lint: enable usestdlibvars linter 2024-04-08 19:26:23 +00:00
jsonutil Name float values as "floats", not as "values" 2023-04-13 19:25:24 +02:00
logging lint: Adjust to the lint warnings raised by current versions of golint-ci 2023-04-19 17:10:10 +02:00
osutil Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
pool Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
runtime util/runtime: Ignore nolintlint failure on OSX (#13546) 2024-02-06 13:53:37 +01:00
runutil Append Created Timestamps (#12733) 2023-12-11 08:43:42 +00:00
stats Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00
strutil Implement SanitizeLabelName and Full variant 2023-02-03 15:28:33 +00:00
teststorage promtool: Avoid using testify for user rule tests 2024-03-21 22:08:10 +11:00
testutil tsdb: check for context cancel before regex matching postings (#14096) 2024-05-15 06:26:19 +02:00
treecache ci(lint): enable nolintlint and remove redundant comments (#12926) 2023-10-31 12:35:13 +01:00
zeropool golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00