grafana/pkg/util
Marcus Efraimsson 4bc582570e
Instrumentation: Proxy status code correction and various improvements (#47473)
For a proxied request, e.g. Grafana's datasource or plugin proxy:
If the request is cancelled, e.g. from the browser, the HTTP status code is 
now 499 Client closed request instead of 502 Bad gateway.
If the request times out, e.g. takes longer time than allowed, the HTTP status 
code is now 504 Gateway timeout instead of 502 Bad gateway.
This also means that request metrics and logs will get their status codes 
adjusted according to above.

Fixes #46337
Fixes #46338
2022-04-11 13:17:08 +02:00
..
cmputil Alerting: Revert Revert "Alerting: Calculate diff for two AlertRules" (#46034) 2022-03-01 11:10:29 -05:00
converter Converter: use streaming JSON parser to construct frames from loki/prometheus responses (#44520) 2022-04-04 17:22:14 -07:00
errutil Chore: Drop xerrors dependency (#26718) 2020-07-31 09:45:20 +02:00
maputil Prometheus: Fix Azure authentication support (#44407) 2022-02-03 17:06:31 +01:00
proxyutil Instrumentation: Proxy status code correction and various improvements (#47473) 2022-04-11 13:17:08 +02:00
retryer CloudWatch Logs queue and websocket support (#28176) 2020-10-28 08:36:57 +00:00
encoding_test.go Auth Proxy: encoding of non-ASCII headers (#44797) 2022-03-04 04:58:27 -05:00
encoding.go Auth Proxy: encoding of non-ASCII headers (#44797) 2022-03-04 04:58:27 -05:00
encryption_test.go Fix decrypting secrets in alerting migration (#41061) 2021-10-29 14:20:07 +03:00
encryption.go Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
filepath_test.go CodeQL: Try to fix uncontrolled data used in path expression (#43462) 2022-01-11 17:37:58 +01:00
filepath.go CodeQL: Try to fix uncontrolled data used in path expression (#43462) 2022-01-11 17:37:58 +01:00
ip_address_test.go Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
ip_address.go Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
json.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00
math.go Chore: Remove dead code (#28664) 2020-11-05 11:00:00 +01:00
md5_test.go Fix changed want md5 hash 2018-09-21 13:41:03 +02:00
md5.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00
shortid_generator_test.go LibraryElements: Enables creating library elements with specific UID (#39019) 2021-09-10 11:22:13 +02:00
shortid_generator.go LibraryElements: Enables creating library elements with specific UID (#39019) 2021-09-10 11:22:13 +02:00
split_email_test.go Test: Create unit test to SplitEmails (#27985) 2020-10-02 08:42:10 +02:00
split_email.go Emails: resurrect template notification (#18686) 2019-08-26 17:19:03 +02:00
strings_test.go Chore: Query endpoint refactor (#41637) 2021-11-29 14:21:54 +01:00
strings.go Chore: Query endpoint refactor (#41637) 2021-11-29 14:21:54 +01:00
url_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00
url.go AzureMonitor: Alerting for Azure Application Insights (#19381) 2019-10-07 14:18:14 +02:00
validation_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00
validation.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00