void (final IndexId<?, ?> indexId, final boolean failed, final long durationMs) { if (!failed) { final Recorder recorder = stubEntriesLookupDurationsMsByIndexId.computeIfAbsent( indexId, __ -> new Recorder( MAX_TRACKABLE_DURATION_MS, /* significant digits = */ 2 /* ~1% accuracy */ ) ); final long clampedDurationMs = MathUtil.clamp(durationMs, 0, MAX_TRACKABLE_DURATION_MS); //Recorder allows concurrent writes: recorder.recordValue(clampedDurationMs); if (otelReporter != null) { otelReporter.recordStubEntryLookup(clampedDurationMs); } } }