elastic / elastic-otel-java

Apache License 2.0
8 stars 7 forks source link

Fix flakyness of universal profiling integration bufferCapacityExceeded test #245

Closed JonasKunz closed 1 month ago

JonasKunz commented 2 months ago

There was a rare flake in the test: Sometimes if the timing was correct, the background thread started by the profiling integration would pick up span1 into the PeekingPoller, causing span3 to fit into the ringbuffer.