micrometer
micrometer copied to clipboard
Poor performance of DefaultLongTaskTimer#takeSnapshot
Poor performance of MicrometerCollector.collect()
which uses DefaultLongTaskTimer
. DefaultLongTaskTimer
contains a lot of calls of ConcurrentLinkedDeque.size()
with O(n)
complexity during histogram creation.
Micrometer version: 1.10.3
Might be worth saving the size of deque or full snapshot at the beginning of the method DefaultLongTaskTimer.takeSnapshot()
execution. Also method may contain data races between histogram creation and updates of activeTasks
.