prometheus/scrape
Laimis Juzeliūnas a5ffa83be8
scrape: reorder the switch case of errors (#15991)
Change case order for switch scrapeLoop

This commit changes the ordering in error identification switch cases for better production performance and adds reasonings behind error switch case order as comments.

---------

Signed-off-by: Laimis Juzeliūnas <asnelaimis@gmail.com>
2025-02-13 14:25:50 +01:00
..
testdata Include test CA text info (#14699) 2024-08-20 19:41:02 +02:00
clientprotobuf.go lint: Revamp our linting rules, mostly around doc comments 2024-08-22 17:36:11 +02:00
helpers_test.go scrape: Fix metadata in WAL not working for histograms and summaries. 2025-01-15 20:12:38 +00:00
manager.go ref: JSONFileLogger slog handler, add scrape.FailureLogger interface 2024-11-28 23:14:31 -05:00
manager_test.go Scraping: stop storing discovered labels (#15261) 2024-12-21 13:33:08 +00:00
metrics.go Scraping: add metric for symbol table size 2024-07-05 10:16:22 +01:00
scrape.go scrape: reorder the switch case of errors (#15991) 2025-02-13 14:25:50 +01:00
scrape_test.go textparse: Optimized protobuf parser with custom streaming unmarshal. (#15731) 2025-02-13 10:38:35 +00:00
target.go scrape: Fix metadata in WAL not working for histograms and summaries. 2025-01-15 20:12:38 +00:00
target_test.go Scraping: stop storing discovered labels (#15261) 2024-12-21 13:33:08 +00:00