azure-container-networking/telemetry
QxBytes ff0c3ea315
fix: move bufio reader creation out of for loop to fix telemetry unmarshal errors (#2789)
* move bufio reader creation out of for loop

if the bufio reader is created in the for loop we get unmarshaling errors

* fix linter issue

* add fixed ut

* fix existing unit test flake due to closing pipe on error

a previous fix ensured the socket closed on error, but this caused an existing ut to nondeterministically fail
without the previous fix, the socket wouldn't have been closed on error

* make read inline
2024-06-21 18:42:27 +00:00
..
aiwrapper.go [CNI] zap logger telemetry package (#2266) 2023-10-04 11:43:46 -07:00
aiwrapper_test.go [CNI] zap logger telemetry package (#2266) 2023-10-04 11:43:46 -07:00
azure-vnet-telemetry.config AppInsightTelemetry support for CNI (#458) 2020-01-14 14:53:24 -08:00
constants.go Use Lockedfile api to acquire lock (#1070) 2021-11-09 08:19:44 -08:00
metadata_test.json Remove dead codes from telemetry package (#1004) (#1022) 2021-09-20 13:49:08 -05:00
telemetry.go [CNI] zap logger for platform package (#2233) 2023-10-13 12:08:58 -07:00
telemetry_linux.go fix: [Telemetry] Prevent telemetry connect if no binary path (#1883) 2023-04-07 09:30:54 -07:00
telemetry_test.go [CNI] zap logger telemetry package (#2266) 2023-10-04 11:43:46 -07:00
telemetry_windows.go [CNI] zap logger for platform package (#2233) 2023-10-13 12:08:58 -07:00
telemetrybuffer.go fix: move bufio reader creation out of for loop to fix telemetry unmarshal errors (#2789) 2024-06-21 18:42:27 +00:00
telemetrybuffer_linux.go fixed logging part of telemetry (#312) 2019-03-13 14:01:30 -07:00
telemetrybuffer_test.go fix: move bufio reader creation out of for loop to fix telemetry unmarshal errors (#2789) 2024-06-21 18:42:27 +00:00
telemetrybuffer_windows.go fixed logging part of telemetry (#312) 2019-03-13 14:01:30 -07:00