opentelemetry-collector-contrib
opentelemetry-collector-contrib copied to clipboard
Js/diagnose flaky prom tests
Description: <Describe what has changed.>
- Addressed scrape timing configuration that was too tight for production test environment, causing test to fail sometimes due to borderline slowness of the http response loop.
- Added additional race condition protection to account for potential race between http server request processing and reciever response processing.
Link to tracking Issue: #11753
This also impacts several other prom receiver bugs, but we'll start with this one and then do a separate PR to unskip the rest once this appears to be working.
Testing: Local testing with synthetically slowed down ServeHTTP function using 500ms delay as environment target.