ionutboangiu
bd3e18754b
Clone header before creating exporter HTTP request
...
Behind http.Header is just a map and it's not safe for concurrent use.
Before this change, a panic might have occurred when doing asynchronous
HTTP exports (applies to both *http_post and *http_json_map exporters).
Cloning the header before adding it to the HTTP request has fixed this
issue.
Slightly improved the test that found this data race.
2024-09-05 20:46:40 +02:00
ionutboangiu
113e2a2bdf
Replace interface{} with any
2023-05-31 10:22:28 +02:00
adi
734776b113
Unified consts of opts
2022-10-03 18:29:24 +03:00
andronache98
ecdf5e54ea
Changed headers
2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155
Changed headers
2022-03-09 14:14:30 +01:00
andronache
7ab4167613
Corrected header in multiple files
2021-11-01 13:50:00 +02:00
porosnicuadrian
8bac24c964
Modified PrepareMap method signature for ExportEvent
2021-11-01 13:48:21 +02:00
Trial97
a3ebbe38ec
Added EeSV1 APIs back
2021-09-07 07:44:10 +02:00
Trial97
9aa153c0b0
Finished implementing all the exporters
2021-08-18 16:34:44 +02:00
Trial97
d2915a5737
Updated the EEs with the new interface
2021-08-18 16:34:44 +02:00
nickolasdaniel
7721784809
Reduced time.Sleep in ees tests
2021-08-03 14:58:46 +03:00
nickolasdaniel
851997d9a2
Fixing test for FWV files
2021-07-31 15:36:06 +02:00
nickolasdaniel
4c5d5ebb2c
Added and fixed some tests for ees exporters
2021-07-31 15:36:06 +02:00
nickolasdaniel
eca4ada932
Updated httppost_test.go
2021-07-29 08:45:39 +02:00
nickolasdaniel
5c309f553f
Tested if we can send multiple concurrent requests withiut locking on HttpJSONMap, HttpPost and PosterJSONMap, also tested the limit as well
2021-07-29 08:45:39 +02:00
Trial97
7609c6a925
Updated ees metrics
2021-07-23 10:58:30 +02:00
nickolasdaniel
62709df691
Coverage tests for ees
2021-03-17 13:44:18 +01:00
nickolasdaniel
bc9417710c
Coverage tests for ees
2021-03-15 17:08:01 +01:00
nickolasdaniel
4be82cd76f
Coverage tests in ees package and updated Go version in Ansible scripts
2021-03-12 16:10:04 +01:00
nickolasdaniel
430fa35f9a
Coverage tests for ees
2021-03-10 16:21:33 +01:00